feat: split configuration

This commit is contained in:
Xavier Logerais 2023-06-07 09:45:55 +02:00
parent 4a23f68fd1
commit a71137b234
4 changed files with 30 additions and 19 deletions

View File

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
# Configuration GIT
git config --global user.name "Xavier Logerais" for file in config.d/*.bash
git config --global user.email "xavier@logerais.com" do
bash $file
done
# Configuration BASH # Configuration BASH
@ -28,19 +29,3 @@ then
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
nvim +PackerSync nvim +PackerSync
fi fi
# Configuration SCREEN
if [[ ! -d ~/.screen ]]
then
git clone --recursive https://github.com/xlogerais/config-screen.git ~/.screen
bash ~/.screen/create-links.bash
fi
# Configuration TMUX
if [[ ! -d ~/.tmux ]]
then
git clone --recursive https://github.com/xlogerais/config-tmux.git ~/.tmux
bash ~/.tmux/create-links.bash
fi

8
config.d/git.bash Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# Configuration GIT
git config --global user.name "Xavier Logerais"
git config --global user.email "xavier@logerais.com"
git config --global rerere.enabled 1
git config --global merge.conflictstyle diff3

9
config.d/screen.bash Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# Configuration SCREEN
if [[ ! -d ~/.screen ]]
then
git clone --recursive https://github.com/xlogerais/config-screen.git ~/.screen
bash ~/.screen/create-links.bash
fi

9
config.d/tmux.bash Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# Configuration TMUX
if [[ ! -d ~/.tmux ]]
then
git clone --recursive https://github.com/xlogerais/config-tmux.git ~/.tmux
bash ~/.tmux/create-links.bash
fi