diff options
author | Karel Kočí <cynerd@email.cz> | 2017-02-28 23:25:26 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-02-28 23:25:26 +0100 |
commit | 3194d0e78e2cb50b484852a37491f9b9b2c81cc3 (patch) | |
tree | 2e81872b0be0ea0fed60a2fe6e5913e1e56ad3b1 /install | |
parent | 5c9aa6a1bac34068e29e78afbc84331c83fe23a3 (diff) | |
parent | 356f7434da419d1a65a74423a99656653a28fb03 (diff) | |
download | myconfigs-3194d0e78e2cb50b484852a37491f9b9b2c81cc3.tar.gz myconfigs-3194d0e78e2cb50b484852a37491f9b9b2c81cc3.tar.bz2 myconfigs-3194d0e78e2cb50b484852a37491f9b9b2c81cc3.zip |
Merge branch 'master' of cynerd.cz:myconfigs
Diffstat (limited to 'install')
-rwxr-xr-x | install | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -42,15 +42,15 @@ fi read -p "Install VIM scripts? (Y/n) " YCM_PATH=~/.vim/bundle/YouCompleteMe if [[ $REPLY =~ ^[Yy]?$ ]]; then - YCM_REV="$(cd $YCM_PATH && git --work-tree=. rev-parse HEAD)" + # See if we have anything different from what we have in repository + YCM_REV="$(cd $YCM_PATH && git --work-tree=. diff --exit-code -s && echo y)" inst vimrc ~/.vimrc inst vim/ ~/.vim inst local/bin/vim-project-gen ~/.local/bin/vim-project-gen mkdir -p ~/.cache/vim # directory for *.swp files mkdir -p ~/.cache/vim-undo # directory for undo files - # Check if YCM was updated and if so recompile - if [ "$YCM_REV" != "$(cd $YCM_PATH && git --work-tree=. rev-parse HEAD)" ]; then ( - cd ~/.vim/bundle/YouCompleteMe + if [ "$YCM_REV" != "y" ]; then ( + cd $YCM_PATH ./install.py --clang-completer --system-libclang --racer-completer ); else echo "YouCompleteMe is not required to be recompiled" |