Skip to content

Commit

Permalink
update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Dec 29, 2019
1 parent b6362ce commit 5a54fb7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ function update_vim_plugin()
# 拷贝文件
function copy_files()
{
rm -rf ~/.vimrc
ln -s ${PWD}/.vimrc ~

vimrc_plugins=$HOME"/.vimrc.custom.plugins"
is_exist=$(is_exist_file $vimrc_plugins)
if [ $is_exist != 1 ]; then
Expand All @@ -54,6 +57,18 @@ function copy_files()
if [ $is_exist != 1 ]; then
cp ${PWD}/.vimrc.custom.config ~
fi

rm -rf ~/.ycm_extra_conf.py
ln -s ${PWD}/.ycm_extra_conf.py ~

rm -rf ~/.vim/colors
ln -s ${PWD}/colors ~/.vim

rm -rf ~/.vim/ftplugin
ln -s ${PWD}/ftplugin ~/.vim

rm -rf ~/.vim/autoload
ln -s ${PWD}/autoload ~/.vim
}

# 打印logo
Expand Down

0 comments on commit 5a54fb7

Please sign in to comment.