-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
82 lines (61 loc) · 2.05 KB
/
setup.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
#!/bin/sh
github_username="stefanm8"
github_email="[email protected]"
curl_file() {
echo "$(curl $1)" > $2
}
install_vim() {
echo "Installing vim plugins and vimrc"
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
curl_file https://raw.githubusercontent.com/stefanm8/dotfiles/master/.vimrc ~/.vimrc
vim +PluginInstall +qall
}
install_dotfiles() {
echo "Installing .bashrc .bash_aliases .bash_completion"
curl_file https://raw.githubusercontent.com/stefanm8/dotfiles/master/.bashrc ~/.bashrc
curl_file https://raw.githubusercontent.com/stefanm8/dotfiles/master/.bash_aliases ~/bash_aliases
curl_file https://raw.githubusercontent.com/stefanm8/dotfiles/master/.bash_completion ~/bash_completion
}
install_apps() {
echo "Installing necessities via brew cask"
brew update
brew tap caskroom/cask
brew install jq node go jsonnet gnupg nmap
brew cask install docker google-chrome visual-studio-code vlc
brew cask cleanup
brew cleanup
}
install_kubectl() {
echo "Installing kubectl"
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl > /usr/local/bin/kubectl
mv kubectl /usr/local/bin/kubectl
chmod +x /usr/local/bin/kubectl
}
install_go_dev() {
go get github.com/gopasspw/gopass
go get -u github.com/go-delve/delve/cmd/dlv
}
install_pip() {
brew install python3
echo "$(curl https://bootstrap.pypa.io/get-pip.py)" | sudo python
pip3 install pipenv
}
install_npm_dev() {
npm install -g @angular/cli
npm install -g typescript
npm install -g react
}
change_defaults() {
defaults write com.apple.finder AppleShowAllFiles YES
}
main() {
git config --global user.name $github_username
git config --global user.email $github_email
install_vim &
install_dotfiles &
install_kubectl &
install_apps &
install_npm_dev
change_defaults
}
main