From 44f048b06e3504490c0c36ac8226c66692e0e6ea Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sun, 4 Feb 2024 15:06:13 +0000 Subject: [PATCH] feat: split configuration --- config.bash | 24 ++++-------------------- config.d/nvim.bash | 10 ++++++++++ config.d/vim.bash | 11 +++++++++++ 3 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 config.d/nvim.bash create mode 100644 config.d/vim.bash diff --git a/config.bash b/config.bash index 63b713c..c025b9c 100644 --- a/config.bash +++ b/config.bash @@ -1,11 +1,5 @@ #!/bin/bash - -for file in config.d/*.bash -do - bash $file -done - # Configuration BASH if [[ ! -d ~/.bash ]] @@ -14,18 +8,8 @@ then bash ~/.bash/create-links.bash 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 diff --git a/config.d/nvim.bash b/config.d/nvim.bash new file mode 100644 index 0000000..c816430 --- /dev/null +++ b/config.d/nvim.bash @@ -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 + diff --git a/config.d/vim.bash b/config.d/vim.bash new file mode 100644 index 0000000..9de2bd6 --- /dev/null +++ b/config.d/vim.bash @@ -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 + +