diff options
| author | jason | 2015-02-17 10:15:46 -0700 |
|---|---|---|
| committer | jason | 2015-02-17 10:15:46 -0700 |
| commit | d4644fdbd245c1e48ebdaf2e9b30edc899ad9bb9 (patch) | |
| tree | 674dfc5cc1f9f6056fb8c366b3719cc96d5ccd6d /common_move_in.sh | |
| parent | 697131af904ba0d5ceb9f4321039ea87325c5b77 (diff) | |
| download | dotfiles-d4644fdbd245c1e48ebdaf2e9b30edc899ad9bb9.tar.gz dotfiles-d4644fdbd245c1e48ebdaf2e9b30edc899ad9bb9.zip | |
added oh-my-zsh to common
Diffstat (limited to 'common_move_in.sh')
| -rwxr-xr-x | common_move_in.sh | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/common_move_in.sh b/common_move_in.sh index f287c3d..06aa7b0 100755 --- a/common_move_in.sh +++ b/common_move_in.sh | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | 2 | ||
| 3 | if ! [ -d "$HOME/.oh-my-zsh" ]; then | ||
| 4 | echo "Installing Oh My ZSH" | ||
| 5 | curl -L http://install.ohmyz.sh | sh | ||
| 6 | |||
| 7 | # Remove the default config in favor of our own later on in this script | ||
| 8 | rm $HOME/.zshrc | ||
| 9 | fi | ||
| 10 | |||
| 3 | if ! [ -d "$HOME/Code" ]; then | 11 | if ! [ -d "$HOME/Code" ]; then |
| 4 | mkdir $HOME/Code | 12 | mkdir $HOME/Code |
| 5 | fi | 13 | fi |
| @@ -15,13 +23,23 @@ else | |||
| 15 | fi | 23 | fi |
| 16 | CWD=`pwd` | 24 | CWD=`pwd` |
| 17 | 25 | ||
| 18 | echo "Linking vim settings..." | 26 | if ! [ -e "$HOME/.vimrc" ]; then |
| 19 | ln -s $CWD/vim $HOME/.vim | 27 | echo "Linking vim settings..." |
| 20 | ln -s $CWD/vim/vimrc $HOME/.vimrc | 28 | ln -s $CWD/vim $HOME/.vim |
| 29 | ln -s $CWD/vim/vimrc $HOME/.vimrc | ||
| 30 | fi | ||
| 31 | |||
| 32 | if ! [ -e "$HOME/.zshrc" ]; then | ||
| 33 | echo "Linking .zshrc..." | ||
| 34 | ln -s $CWD/zshrc $HOME/.zshrc | ||
| 35 | fi | ||
| 21 | 36 | ||
| 37 | # OS X Only setup | ||
| 22 | if [[ $OSTYPE == darwin* ]]; then | 38 | if [[ $OSTYPE == darwin* ]]; then |
| 23 | echo "Linking amethyst config..." | 39 | if ! [ -e "$HOME/.amethyst" ]; then |
| 24 | ln -s $CWD/amethyst $HOME/.amethyst | 40 | echo "Linking amethyst config..." |
| 41 | ln -s $CWD/amethyst $HOME/.amethyst | ||
| 42 | fi | ||
| 25 | fi | 43 | fi |
| 26 | 44 | ||
| 27 | echo "Done." | 45 | echo "Done." |