diff --git a/bootstrap.sh b/bootstrap.sh index 6c53e4d..1a62fbd 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -11,18 +11,21 @@ # Make a backup of the existing file if it exists # Then link to our supplied dotfile link() { - if [ -f "$HOME/$1" ]; then - cp "$HOME/$1" "$HOME/$1.old" - echo "Backed up original $1 to $HOME/$1.old" + if [ -f "$1/$2" ]; then + cp "$1/$2" "$1/$2.old" + echo "Backed up original $2 to $1/$2.old" fi - ln -sf "$PWD/$2" "$HOME/$1" + ln -sf "$PWD/$3" "$1/$2" } set -x set -e # Configure .vimrc -link ".vimrc" "vimrc" +link "$HOME" ".vimrc" "vimrc" # Configure .gitconfig -link ".gitconfig" "gitconfig" +link "$HOME" ".gitconfig" "gitconfig" + +# Configure .zshrc +link "$HOME" ".zshrc" "zshrc" diff --git a/zshrc b/zshrc new file mode 100644 index 0000000..9f15868 --- /dev/null +++ b/zshrc @@ -0,0 +1,15 @@ +# +# Using Oh My ZSH +# https://github.com/robbyrussell/oh-my-zsh +# + +export ZSH=$HOME/.oh-my-zsh + +ZSH_THEME="ys" + +plugins=(git) + +source $ZSH/oh-my-zsh.sh + +export LANG=en_US.UTF-8 +export EDITOR='vim'