feat: split configuration
This commit is contained in:
parent
4a23f68fd1
commit
a71137b234
23
config.bash
23
config.bash
@ -1,9 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Configuration GIT
|
||||
|
||||
git config --global user.name "Xavier Logerais"
|
||||
git config --global user.email "xavier@logerais.com"
|
||||
for file in config.d/*.bash
|
||||
do
|
||||
bash $file
|
||||
done
|
||||
|
||||
# Configuration BASH
|
||||
|
||||
@ -28,19 +29,3 @@ then
|
||||
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
|
||||
nvim +PackerSync
|
||||
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
8
config.d/git.bash
Normal 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
9
config.d/screen.bash
Normal 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
9
config.d/tmux.bash
Normal 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
|
Loading…
Reference in New Issue
Block a user