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 /move_in.sh | |
| parent | f176cf30293cf2793f83026a3587752b69b128a9 (diff) | |
| download | dotfiles-cfce7547cd36c8ab7f53fb620e0297e722761d8d.tar.gz dotfiles-cfce7547cd36c8ab7f53fb620e0297e722761d8d.zip | |
Update move in scripts, add bin scripts
Diffstat (limited to 'move_in.sh')
| -rwxr-xr-x | move_in.sh | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -1,15 +1,33 @@ | |||
| 1 | #!/bin/bash | 1 | #!/bin/bash |
| 2 | CWD=`pwd` | ||
| 2 | 3 | ||
| 4 | # letsencrypt CA certs aren't installed yet so we pass --insecure | ||
| 3 | CURL='curl --silent --insecure --location' | 5 | CURL='curl --silent --insecure --location' |
| 4 | 6 | ||
| 5 | if [[ $OSTYPE == darwin* ]]; then | 7 | if [[ $OSTYPE == darwin* ]]; then |
| 6 | echo "OS X detected. Executing os-x_move_in.sh" | 8 | echo "OS X detected. Executing os-x_move_in.sh" |
| 7 | $CURL https://beehive.io/jason/dotfiles/raw/master/os-x_move_in.sh | 9 | $CURL https://beehive.io/jason/dotfiles/raw/master/os-x_move_in.sh |
| 10 | |||
| 11 | if ! [ -e "$HOME/.amethyst" ]; then | ||
| 12 | echo "Linking amethyst config..." | ||
| 13 | stow amethyst | ||
| 14 | fi | ||
| 15 | |||
| 16 | if [ -e "/usr/bin/vagrant" ] && [ -e "$CWD/../vagrant-vmware-license.lic" ]; then | ||
| 17 | echo "Installing Vagrant support for VMWare Fusion..." | ||
| 18 | vagrant plugin install vagrant-vmware-fusion | ||
| 19 | vagrant plugin license vagrant-vmware-fusion "$CWD/../vagrant-vmware-license.lic" | ||
| 20 | fi | ||
| 21 | |||
| 8 | fi | 22 | fi |
| 9 | 23 | ||
| 10 | if [[ $OSTYPE == linux-gnu ]]; then | 24 | if [[ $OSTYPE == linux-gnu ]]; then |
| 11 | if [[ `lsb_release -i -s` == Ubuntu ]]; then | 25 | if [[ `lsb_release -i -s` == Ubuntu ]]; then |
| 12 | echo "Ubuntu detected. Executing ubuntu_move_in.sh" | 26 | echo "Ubuntu detected. Executing ubuntu_move_in.sh" |
| 27 | sudo apt-get install -y curl | ||
| 13 | $CURL https://beehive.io/jason/dotfiles/raw/master/ubuntu_move_in.sh | sh | 28 | $CURL https://beehive.io/jason/dotfiles/raw/master/ubuntu_move_in.sh | sh |
| 14 | fi | 29 | fi |
| 15 | fi | 30 | fi |
| 31 | |||
| 32 | cd $CWD | ||
| 33 | echo "Done." | ||