Skip to content

Commit

Permalink
update install
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate committed Apr 2, 2022
1 parent c0a0028 commit 156a97e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions release/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ install_coc_plugins() {

mkdir -p ~/.config/coc/extensions/node_modules/coc-ccls
ln -sf node_modules/ws/lib ~/.config/coc/extensions/node_modules/coc-ccls/lib
echo '-- Installation complete'
echo '-- coc plugins installed successfully'
}


Expand Down Expand Up @@ -152,11 +152,20 @@ else
ln -sf node_modules/ws/lib ~/.config/coc/extensions/node_modules/coc-ccls/lib
EOF
echo -n "-- Continue installing from source (y/N)? "; read -n1 x; echo
if [ "x$x" == "xy" ]; then install_any; fi
if [ "x$x" != "xy" ]; then exit 1; fi
install_any
fi

if [ "x$PWD" != "x$HOME" ]; then
[ -f ~/.vimrc ] && mv ~/.vimrc /tmp/backup.$$.vimrc
[ -d ~/.vim ] && mv ~/.vim /tmp/backup.$$.vim
if [ -f ~/.vimrc ]; then
echo "-- backup existing .vimrc to ~/.vimrc.backup.$$"
mv ~/.vimrc ~/.vimrc.backup.$$
fi
if [ -d ~/.vim ]; then
echo "-- backup existing .vim to ~/.vim.backup.$$"
mv ~/.vim ~/.vim.backup.$$
fi
echo "-- installing .vimrc and .vim"
cp -r .vimrc .vim ~/
echo "-- installation complete, thank you for choosing archibate/vimrc"
fi

0 comments on commit 156a97e

Please sign in to comment.