install.sh 453 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
  3. if ! which git >/dev/null; then
  4. echo "Error: git is not installed"
  5. exit 1
  6. fi
  7. # git
  8. git submodule update --init
  9. ln -sf $DIR/gitconfig ~/.gitconfig
  10. # bash
  11. ln -sf $DIR/bashrc ~/.bashrc
  12. source ~/.bashrc
  13. # screen
  14. ln -sf $DIR/screenrc ~/.screenrc
  15. # vim
  16. if which vim >/dev/null; then
  17. ln -sfT $DIR/vim ~/.vim
  18. ln -sf $DIR/vimrc ~/.vimrc
  19. vim +PluginInstall +qall
  20. fi