install 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. for i in $(ls "$DIR"); do
  4. if [ "$i" != "install" ] || [ "$i" != "UpdateVimPlugins" ]; then
  5. if [ -e "~/.$i" ]; then
  6. read -p "~/.$i exists! Delete? [y/N] " -n 1 -r
  7. if [[ $REPLY =~ ^[Yy]$ ]]; then
  8. #probably would be better to explicitly check
  9. #if directory before -r and -n
  10. rm -r "~/.$i"
  11. ln -sn "$DIR/$i" "~/.$i"
  12. fi
  13. echo ""
  14. else
  15. ln -sn "$DIR/$i" "~/.$i"
  16. fi
  17. fi
  18. done
  19. git submodule foreach git pull origin master
  20. ln -fsn "$DIR"/vim/pathogen/autoload "$DIR"/vim/
  21. #Very specific to Arch
  22. echo "Installing boost and powerline"
  23. yaourt -S boost python2-powerline-git
  24. echo "Compiling YouCompleteMe"
  25. cd "$DIR"/vim/bundle/YouCompleteMe
  26. ./install.sh --clang-completer
  27. read -p "Auto install exuberant-ctags? [y/N] " -n 1 -r
  28. if [[ $REPLY =~ ^[Yy]$ ]]; then
  29. echo ""
  30. git clone git://github.com/jakedouglas/exuberant-ctags.git ~/exuberant-ctags
  31. cd ~/exuberant-ctags
  32. ./configure
  33. make
  34. sudo make install
  35. rm -r ~/exuberant-ctags
  36. fi
  37. echo ""