bootstrap.bash 410 B

12345678910111213141516171819202122
  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. # vim
  14. if which vim >/dev/null; then
  15. ln -sfT $DIR/vim ~/.vim
  16. ln -sf $DIR/vimrc ~/.vimrc
  17. vim +PluginInstall +qall
  18. fi