-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·113 lines (89 loc) · 2.86 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
cp -i .gitconfig ~/.gitconfig
# first thing's first, install homebrew
if ! [ -x "$(command -v brew)" ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew tap homebrew/cask
brew tap homebrew/cask-versions
brew tap domt4/autoupdate
brew autoupdate --start 43200 --upgrade --cleanup --enable-notification
# CLI basics
brew install git curl wget jq
git config --global user.name "Patrick Menlove"
git config --global user.email "[email protected]"
# ZSH & iTerm
brew install zsh autoenv bash-git-prompt
brew install --cask iterm2
if [ "$SHELL" != "/bin/zsh" ]; then
chsh -s $(which zsh)
fi
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cp -i material-patrick.zsh-theme ~/.oh-my-zsh/custom/themes/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/zsh-syntax-highlighting
if ! [ -f ~/.iterm2_shell_integration.zsh ]; then
curl -L https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh | bash
fi
cd fonts
./install.sh
cd ..
# Bash & Zsh Dotfiles
./install_dotfiles_only.sh
# Must have applications
brew install --cask firefox atom docker jetbrains-toolbox pycharm webstorm intellij-idea visual-studio-code
brew install mas
mas install 1176895641 # Spark
mas install 803453959 # Slack
mas install 1116599239 # NordVPN IKE
mas install 1278508951 # Trello
mas install 926036361 # LastPass fat client
# setup MacOS defaults
. .macos
# Setup Dock
# brew install dockutil
# ./setup_dock.sh
# Programming languages setup
# Python
brew install python
ln -s /usr/local/bin/python3 /usr/local/bin/python
python --version
# Node
brew install yarn
mkdir ~/.nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install --lts
nvm use --lts
# Ruby
brew install rbenv
# Android
brew install --cask android-sdk
# Go
brew install go
# Terraform
brew install terraform
# LastPass cli
brew install lastpass-cli
lpass login --trust [email protected]
# SSH KEYS
mkdir -p ~/.ssh
if ! [ -f ~/.ssh/id_rsa ]; then
lpass show --notes 1544556513467781929 > ~/.ssh/id_rsa
fi
chmod 600 ~/.ssh/id_rsa
if ! [ -f ~/.ssh/id_rsa.pub ]; then
lpass show --notes 666179570102873445 > ~/.ssh/id_rsa.pub
fi
chmod 600 ~/.ssh/id_rsa.pub
# GPG KEYS
brew install --cask gpg-suite
echo "S" | lpass show 5422875641318947951 --attach att-5422875641318947951-1
gpg --import githubkey.asc
rm githubkey.asc
git config --global commit.gpgsign true
git config --global user.signingkey B21F8BBC6E7335EF4C7B0BD8C2BB893186B3E679
# AWS access / keys
brew install awscli
# Xcode (last since it takes a while)
mas install 497799835 # xcode