aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2017-04-20 16:26:08 -0600
committerjason2017-04-20 16:26:08 -0600
commitc8cbfca2650ae3502508fa2d04cfa24c8923a851 (patch)
tree6262cde5cd92a7bff9816de414e1c4d74ffa7cb5
parent281832999825334accd1da552d7e028efd8b3e2f (diff)
downloaddotfiles-c8cbfca2650ae3502508fa2d04cfa24c8923a851.tar.gz
dotfiles-c8cbfca2650ae3502508fa2d04cfa24c8923a851.zip
Update move in scripts
-rwxr-xr-xcommon_move_in.sh28
-rwxr-xr-xmove_in.sh15
-rwxr-xr-xos-x_move_in.sh10
-rw-r--r--ubuntu_move_in.sh16
4 files changed, 53 insertions, 16 deletions
diff --git a/common_move_in.sh b/common_move_in.sh
index 26eb153..1a441b6 100755
--- a/common_move_in.sh
+++ b/common_move_in.sh
@@ -12,39 +12,29 @@ if ! [ -d "$HOME/Code" ]; then
12 mkdir $HOME/Code 12 mkdir $HOME/Code
13fi 13fi
14 14
15cd ~/Code 15if ! [ -d "$HOME/dotfiles" ]; then
16 16 git clone git@beehive.io:jason/dotfiles.git
17if ! [ -d "$HOME/Code/dotfiles" ]; then
18 git clone git@codesaloon.com:jason/dotfiles.git
19 cd dotfiles 17 cd dotfiles
20else 18else
21 cd dotfiles 19 cd dotfiles
22 git pull 20 git pull
23fi 21fi
24CWD=`pwd`
25
26if ! [ -e "$HOME/bin"]; then
27 mkdir $HOME/bin/
28 cd $HOME/bin/
29 curl -O http://orgmode.org/worg/code/awk/ical2org.awk
30fi
31 22
32if ! [ -e "$HOME/.vimrc" ]; then 23if ! [ -e "$HOME/.vimrc" ]; then
33 echo "Linking vim settings..." 24 echo "Linking vim settings..."
34 ln -s $CWD/vim $HOME/.vim 25 stow vim
35 ln -s $CWD/vim/vimrc $HOME/.vimrc
36fi 26fi
37 27
38if ! [ -e "$HOME/.zshrc" ]; then 28if ! [ -e "$HOME/.zshrc" ]; then
39 echo "Linking .zshrc..." 29 echo "Linking .zshrc..."
40 ln -s $CWD/zshrc $HOME/.zshrc 30 stow zsh
41fi 31fi
42 32
43# OS X Only setup 33# OS X Only setup
44if [[ $OSTYPE == darwin* ]]; then 34if [[ $OSTYPE == darwin* ]]; then
45 if ! [ -e "$HOME/.amethyst" ]; then 35 if ! [ -e "$HOME/.amethyst" ]; then
46 echo "Linking amethyst config..." 36 echo "Linking amethyst config..."
47 ln -s $CWD/amethyst $HOME/.amethyst 37 stow amethyst
48 fi 38 fi
49 39
50 if [ -e "/usr/bin/vagrant" ] && [ -e "$CWD/../vagrant-vmware-license.lic" ]; then 40 if [ -e "/usr/bin/vagrant" ] && [ -e "$CWD/../vagrant-vmware-license.lic" ]; then
@@ -54,4 +44,12 @@ if [[ $OSTYPE == darwin* ]]; then
54 fi 44 fi
55fi 45fi
56 46
47CWD=`pwd`
48
49if ! [ -e "$HOME/bin"]; then
50 mkdir $HOME/bin/
51 cd $HOME/bin/
52 curl -O http://orgmode.org/worg/code/awk/ical2org.awk
53fi
54
57echo "Done." 55echo "Done."
diff --git a/move_in.sh b/move_in.sh
new file mode 100755
index 0000000..453208b
--- /dev/null
+++ b/move_in.sh
@@ -0,0 +1,15 @@
1#!/bin/bash
2
3CURL='curl --silent --insecure --location'
4
5if [[ $OSTYPE == darwin* ]]; then
6 echo "OS X detected. Executing os-x_move_in.sh"
7 $CURL https://beehive.io/jason/dotfiles/raw/master/os-x_move_in.sh
8fi
9
10if [[ $OSTYPE == linux-gnu ]]; then
11 if [[ `lsb_release -i -s` == Ubuntu ]]; then
12 echo "Ubuntu detected. Executing ubuntu_move_in.sh"
13 $CURL https://beehive.io/jason/dotfiles/raw/master/ubuntu_move_in.sh | sh
14 fi
15fi
diff --git a/os-x_move_in.sh b/os-x_move_in.sh
index 8b16c6a..464ed0c 100755
--- a/os-x_move_in.sh
+++ b/os-x_move_in.sh
@@ -84,6 +84,16 @@ if ! [ -d '/Applications/LastPass.app' ]; then
84 read -p "Press [Enter] key to continue..." 84 read -p "Press [Enter] key to continue..."
85fi 85fi
86 86
87cd $HOME
88
89if ! [ -d "$HOME/dotfiles" ]; then
90 git clone git@beehive.io:jason/dotfiles.git
91 cd dotfiles
92else
93 cd dotfiles
94 git pull
95fi
96
87./common_move_in.sh 97./common_move_in.sh
88 98
89open "/opt/homebrew-cask/Caskroom/little-snitch/3.5.1/Little Snitch Installer.app" 99open "/opt/homebrew-cask/Caskroom/little-snitch/3.5.1/Little Snitch Installer.app"
diff --git a/ubuntu_move_in.sh b/ubuntu_move_in.sh
index df234e4..3c18ed9 100644
--- a/ubuntu_move_in.sh
+++ b/ubuntu_move_in.sh
@@ -1,3 +1,17 @@
1echo "Updaing and dist-upgrading"
1sudo apt-get update && sudo apt-get -y dist-upgrade 2sudo apt-get update && sudo apt-get -y dist-upgrade
2 3
3sudo apt-get install -y git i3 4echo "Installing some utilities"
5sudo apt-get install -y git stow
6
7cd $HOME
8
9if ! [ -d "$HOME/dotfiles" ]; then
10 echo "Dotfiles not found... cloning"
11 git clone git@beehive.io:jason/dotfiles.git
12 cd dotfiles
13else
14 echo "Dotfiles found... updating"
15 cd dotfiles
16 git pull
17fi