| 1234567891011121314151617181920212223242526 |
- #!/usr/bin/env bash
- set -euo pipefail
- DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
- if ! which git >/dev/null; then
- echo "Error: git is not installed"
- exit 1
- fi
- # git
- git -C $DIR submodule update --init
- ln -sf $DIR/gitconfig ~/.gitconfig
- # bash
- ln -sf $DIR/bashrc ~/.bashrc
- # tmux
- ln -sf $DIR/tmux.conf ~/.tmux.conf
- # vim
- if which vim >/dev/null; then
- ln -sfT $DIR/vim ~/.vim
- ln -sf $DIR/vimrc ~/.vimrc
- vim +PluginClean! +PluginInstall +qall
- fi
|