add path checks for config

This commit is contained in:
radumacocian
2024-08-18 21:10:38 +02:00
parent 8289a212d4
commit 61c1b611aa
2 changed files with 8 additions and 0 deletions

View File

@@ -40,7 +40,15 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
fi
echo "----- Copying NVIM configuration -----"
if [ ! -d "~/.config" ]; then
echo ".config folder not found. Creating one"
mkdir ~/.confg
fi
ln -s ~/projects/setup/.config/nvim ~/.config/nvim
if [ ! -d "~/.vim" ]; then
echo ".vim folder not found. Creating one"
mkdir ~/.confg
fi
ln -s ~/projects/setup/.vim/undodir ~/.vim/undodir
echo "----- Running PackerSync -----"