diff options
| author | jason | 2017-04-20 16:36:34 -0600 |
|---|---|---|
| committer | jason | 2017-04-21 11:39:13 -0600 |
| commit | cfce7547cd36c8ab7f53fb620e0297e722761d8d (patch) | |
| tree | efedc1d027779445575e55af2805386702e50513 /common_move_in.sh | |
| parent | f176cf30293cf2793f83026a3587752b69b128a9 (diff) | |
| download | dotfiles-cfce7547cd36c8ab7f53fb620e0297e722761d8d.tar.gz dotfiles-cfce7547cd36c8ab7f53fb620e0297e722761d8d.zip | |
Update move in scripts, add bin scripts
Diffstat (limited to 'common_move_in.sh')
| -rwxr-xr-x | common_move_in.sh | 42 |
1 files changed, 15 insertions, 27 deletions
diff --git a/common_move_in.sh b/common_move_in.sh index 1a441b6..ee431ee 100755 --- a/common_move_in.sh +++ b/common_move_in.sh | |||
| @@ -1,25 +1,24 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | cd $HOME/dotfiles/ | ||
| 3 | |||
| 4 | if ! [ -d "$HOME/.git" ]; then | ||
| 5 | echo "Linking git settings..." | ||
| 6 | stow git | ||
| 7 | fi | ||
| 2 | 8 | ||
| 3 | if ! [ -d "$HOME/.oh-my-zsh" ]; then | 9 | if ! [ -d "$HOME/.oh-my-zsh" ]; then |
| 4 | echo "Installing Oh My ZSH" | 10 | echo "Installing Oh My ZSH" |
| 5 | curl -L http://install.ohmyz.sh | sh | 11 | curl --location http://install.ohmyz.sh | sh |
| 6 | 12 | ||
| 7 | # Remove the default config in favor of our own later on in this script | 13 | # Remove the default config in favor of our own later on in this script |
| 8 | rm $HOME/.zshrc | 14 | rm $HOME/.zshrc |
| 15 | chsh -s `which zsh` | ||
| 9 | fi | 16 | fi |
| 10 | 17 | ||
| 11 | if ! [ -d "$HOME/Code" ]; then | 18 | if ! [ -d "$HOME/Code" ]; then |
| 12 | mkdir $HOME/Code | 19 | mkdir $HOME/Code |
| 13 | fi | 20 | fi |
| 14 | 21 | ||
| 15 | if ! [ -d "$HOME/dotfiles" ]; then | ||
| 16 | git clone git@beehive.io:jason/dotfiles.git | ||
| 17 | cd dotfiles | ||
| 18 | else | ||
| 19 | cd dotfiles | ||
| 20 | git pull | ||
| 21 | fi | ||
| 22 | |||
| 23 | if ! [ -e "$HOME/.vimrc" ]; then | 22 | if ! [ -e "$HOME/.vimrc" ]; then |
| 24 | echo "Linking vim settings..." | 23 | echo "Linking vim settings..." |
| 25 | stow vim | 24 | stow vim |
| @@ -30,26 +29,15 @@ if ! [ -e "$HOME/.zshrc" ]; then | |||
| 30 | stow zsh | 29 | stow zsh |
| 31 | fi | 30 | fi |
| 32 | 31 | ||
| 33 | # OS X Only setup | 32 | if ! [ -e "$HOME/bin" ]; then |
| 34 | if [[ $OSTYPE == darwin* ]]; then | ||
| 35 | if ! [ -e "$HOME/.amethyst" ]; then | ||
| 36 | echo "Linking amethyst config..." | ||
| 37 | stow amethyst | ||
| 38 | fi | ||
| 39 | |||
| 40 | if [ -e "/usr/bin/vagrant" ] && [ -e "$CWD/../vagrant-vmware-license.lic" ]; then | ||
| 41 | echo "Installing Vagrant support for VMWare Fusion..." | ||
| 42 | vagrant plugin install vagrant-vmware-fusion | ||
| 43 | vagrant plugin license vagrant-vmware-fusion "$CWD/../vagrant-vmware-license.lic" | ||
| 44 | fi | ||
| 45 | fi | ||
| 46 | |||
| 47 | CWD=`pwd` | ||
| 48 | |||
| 49 | if ! [ -e "$HOME/bin"]; then | ||
| 50 | mkdir $HOME/bin/ | 33 | mkdir $HOME/bin/ |
| 51 | cd $HOME/bin/ | 34 | cd $HOME/bin/ |
| 52 | curl -O http://orgmode.org/worg/code/awk/ical2org.awk | 35 | curl -O http://orgmode.org/worg/code/awk/ical2org.awk |
| 53 | fi | 36 | fi |
| 54 | 37 | ||
| 55 | echo "Done." | 38 | if ! [ -e "$HOME/.ssh" ]; then |
| 39 | mkdir $HOME/.ssh/ | ||
| 40 | fi | ||
| 41 | if ! [ -e "$HOME/.ssh/id_rsa" ]; then | ||
| 42 | ssh-keygen -t rsa -b 4096 | ||
| 43 | fi | ||