|
@@ -1,4 +1,6 @@
|
|
|
#!/usr/bin/env bash
|
|
#!/usr/bin/env bash
|
|
|
|
|
+set -euo pipefail
|
|
|
|
|
+
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
|
|
|
|
if ! which git >/dev/null; then
|
|
if ! which git >/dev/null; then
|
|
@@ -7,12 +9,11 @@ if ! which git >/dev/null; then
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# git
|
|
# git
|
|
|
-git submodule update --init
|
|
|
|
|
|
|
+git -C $DIR submodule update --init
|
|
|
ln -sf $DIR/gitconfig ~/.gitconfig
|
|
ln -sf $DIR/gitconfig ~/.gitconfig
|
|
|
|
|
|
|
|
# bash
|
|
# bash
|
|
|
ln -sf $DIR/bashrc ~/.bashrc
|
|
ln -sf $DIR/bashrc ~/.bashrc
|
|
|
-source ~/.bashrc
|
|
|
|
|
|
|
|
|
|
# tmux
|
|
# tmux
|
|
|
ln -sf $DIR/tmux.conf ~/.tmux.conf
|
|
ln -sf $DIR/tmux.conf ~/.tmux.conf
|