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:
parent
f849244d61
commit
403aed266a
@ -34,8 +34,17 @@ vim_extension () {
|
||||
|
||||
user_install () {
|
||||
echo "VIM Conf"
|
||||
|
||||
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)/
|
||||
|
||||
vim_extension
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user