|
@@ -1,15 +1,22 @@
|
|
|
#!/usr/bin/env bash
|
|
#!/usr/bin/env bash
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
|
|
|
|
-sudo apt-get install -y git vim-nox
|
|
|
|
|
|
|
+if ! which git >/dev/null; then
|
|
|
|
|
+ echo "Error: git is not installed"
|
|
|
|
|
+ exit 1
|
|
|
|
|
+fi
|
|
|
|
|
|
|
|
|
|
+# git
|
|
|
git submodule update --init
|
|
git submodule update --init
|
|
|
-
|
|
|
|
|
-ln -sf $DIR/bashrc ~/.bashrc
|
|
|
|
|
-ln -sf $DIR/vimrc ~/.vimrc
|
|
|
|
|
-ln -sfT $DIR/vim ~/.vim
|
|
|
|
|
ln -sf $DIR/gitconfig ~/.gitconfig
|
|
ln -sf $DIR/gitconfig ~/.gitconfig
|
|
|
|
|
|
|
|
|
|
+# bash
|
|
|
|
|
+ln -sf $DIR/bashrc ~/.bashrc
|
|
|
source ~/.bashrc
|
|
source ~/.bashrc
|
|
|
|
|
|
|
|
-vim +PluginInstall +qall
|
|
|
|
|
|
|
+# vim
|
|
|
|
|
+if which vim >/dev/null; then
|
|
|
|
|
+ ln -sfT $DIR/vim ~/.vim
|
|
|
|
|
+ ln -sf $DIR/vimrc ~/.vimrc
|
|
|
|
|
+ vim +PluginInstall +qall
|
|
|
|
|
+fi
|