update_vim_plugins.sh 625 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
  3. git submodule update --init --recursive
  4. git submodule foreach --recursive git pull origin master
  5. read -p "Auto compile YouCompleteMe? [y/N] " -n 1 -r
  6. if [[ $REPLY =~ ^[Yy]$ ]]; then
  7. echo ""
  8. cd "$DIR"/../vim/bundle/YouCompleteMe
  9. ./install.sh
  10. fi
  11. echo ""
  12. read -p "Auto install exuberant-ctags? [y/N] " -n 1 -r
  13. if [[ $REPLY =~ ^[Yy]$ ]]; then
  14. echo ""
  15. git clone git://github.com/jakedouglas/exuberant-ctags.git ~/exuberant-ctags
  16. cd ~/exuberant-ctags
  17. ./configure
  18. make
  19. sudo make install
  20. rm -rf ~/exuberant-ctags
  21. fi
  22. echo ""