Now the installation script will detect if .vim dir in home is exist if

so, the script will move the old .vim and then proceed with symlink
This commit is contained in:
infidel 2022-07-07 00:34:16 +07:00
parent f849244d61
commit 403aed266a

View File

@ -34,8 +34,17 @@ vim_extension () {
user_install () { user_install () {
echo "VIM Conf" echo "VIM Conf"
ln -sf $(pwd)/.vimrc /home/$(whoami)/ ln -sf $(pwd)/.vimrc /home/$(whoami)/
if [ -d "$HOME/.vim" ] ; then
echo -e "\tExisting .vim directory detected..."
mv "$HOME/.vim" "$HOME/.vim.bak"
read -p "...."
fi
ln -sf $(pwd)/.vim/ /home/$(whoami)/ ln -sf $(pwd)/.vim/ /home/$(whoami)/
vim_extension vim_extension