aboutsummaryrefslogtreecommitdiffstats
path: root/common_move_in.sh
diff options
context:
space:
mode:
authorjason2017-04-20 16:36:34 -0600
committerjason2017-04-21 11:39:13 -0600
commitcfce7547cd36c8ab7f53fb620e0297e722761d8d (patch)
treeefedc1d027779445575e55af2805386702e50513 /common_move_in.sh
parentf176cf30293cf2793f83026a3587752b69b128a9 (diff)
downloaddotfiles-cfce7547cd36c8ab7f53fb620e0297e722761d8d.tar.gz
dotfiles-cfce7547cd36c8ab7f53fb620e0297e722761d8d.zip
Update move in scripts, add bin scripts
Diffstat (limited to 'common_move_in.sh')
-rwxr-xr-xcommon_move_in.sh42
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
2cd $HOME/dotfiles/
3
4if ! [ -d "$HOME/.git" ]; then
5 echo "Linking git settings..."
6 stow git
7fi
2 8
3if ! [ -d "$HOME/.oh-my-zsh" ]; then 9if ! [ -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`
9fi 16fi
10 17
11if ! [ -d "$HOME/Code" ]; then 18if ! [ -d "$HOME/Code" ]; then
12 mkdir $HOME/Code 19 mkdir $HOME/Code
13fi 20fi
14 21
15if ! [ -d "$HOME/dotfiles" ]; then
16 git clone git@beehive.io:jason/dotfiles.git
17 cd dotfiles
18else
19 cd dotfiles
20 git pull
21fi
22
23if ! [ -e "$HOME/.vimrc" ]; then 22if ! [ -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
31fi 30fi
32 31
33# OS X Only setup 32if ! [ -e "$HOME/bin" ]; then
34if [[ $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
45fi
46
47CWD=`pwd`
48
49if ! [ -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
53fi 36fi
54 37
55echo "Done." 38if ! [ -e "$HOME/.ssh" ]; then
39 mkdir $HOME/.ssh/
40fi
41if ! [ -e "$HOME/.ssh/id_rsa" ]; then
42 ssh-keygen -t rsa -b 4096
43fi