-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·32 lines (25 loc) · 900 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Symlink General Files
ln -sf ~/dotfiles/.zshrc ~/.zshrc
# MacOS Specific Tasks
if [[ "$OSTYPE" = darwin* ]]; then
# Symlink MacOS Files
ln -sf ~/dotfiles/.Brewfile ~/.Brewfile
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle --global
elif [[ "$OSTYPE" = linux* ]]; then
sudo apt-get install -y zsh
chsh -s $(which zsh)
fi
# Install NVM
export NVM_DIR="$HOME/dotfiles/.nvm" && (
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR"
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
) && \. "$NVM_DIR/nvm.sh"
# Install Antigen
curl -L git.io/antigen > $HOME/dotfiles/antigen.zsh
# Install GCP SDK
curl "https://sdk.cloud.google.com" | bash -s -- --disable-prompts --install-dir="$HOME/dotfiles/google-cloud-sdk"
exec -l $(which zsh)