feat: split configuration

This commit is contained in:
Xavier Logerais 2024-02-04 15:06:13 +00:00
parent a71137b234
commit 44f048b06e
3 changed files with 25 additions and 20 deletions

View File

@ -1,11 +1,5 @@
#!/bin/bash #!/bin/bash
for file in config.d/*.bash
do
bash $file
done
# Configuration BASH # Configuration BASH
if [[ ! -d ~/.bash ]] if [[ ! -d ~/.bash ]]
@ -14,18 +8,8 @@ then
bash ~/.bash/create-links.bash bash ~/.bash/create-links.bash
fi fi
# Configuration VIM for file in config.d/*.bash
do
bash $file
done
if [[ ! -d ~/.vim ]]
then
git clone --recursive https://github.com/xlogerais/config-vim.git ~/.vim
bash ~/.vim/create-links.bash
fi
# Configuration NVIM
if [[ ! -d ~/.config/nvim ]]
then
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
nvim +PackerSync
fi

10
config.d/nvim.bash Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# Configuration NVIM
if [[ ! -d ~/.config/nvim ]]
then
git clone https://github.com/AstroNvim/AstroNvim ~/.config/nvim
nvim +PackerSync
fi

11
config.d/vim.bash Normal file
View File

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