Repository navigation
Expand file tree
/
Copy pathsetup.sh
More file actions
103 lines (78 loc) · 3 KB
/
Copy pathsetup.sh
File metadata and controls
103 lines (78 loc) · 3 KB
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
# install xcode
xcode-select --install
sudo xcode-select --switch /Library/Developer/CommandLineTools
# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# adding brew location to path in and profile script
export PATH="/opt/homebrew/bin:$PATH"
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
# Mac Preferences
## update scroll direction
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
## add volume to the menu bar
defaults write com.apple.systemuiserver menuExtras -array \
"/System/Library/CoreServices/Menu Extras/Clock.menu" \
"/System/Library/CoreServices/Menu Extras/Volume.menu"
killall SystemUIServer
## Disable annoying terminal sounds (restart terminal after doing this)
echo 'set bell-style off' > ~/.inputrc
. ~/.inputrc
# Show hidden files in finder
defaults write com.apple.finder AppleShowAllFiles -bool YES && killall Finder
#### Cloud cli tools
brew install azure-cli
#### Cli Tools
# git installed with brew
# brew installed above
brew install terraform
brew install kubectl
brew install minikube
brew install helm
# language/frameworks
brew install
# golang
export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
test -d "${GOPATH}" || mkdir "${GOPATH}"
test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com"
echo 'export GOPATH="${HOME}/.go"
export GOROOT="$(brew --prefix golang)/libexec"
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
test -d "${GOPATH}" || mkdir "${GOPATH}"
test -d "${GOPATH}/src/github.com" || mkdir -p "${GOPATH}/src/github.com"
' >> ~/.profile
brew install go
go get golang.org/x/tools/cmd/godoc
go get github.com/golang/lint/golint
# python
brew install python
pip install --user pipenv
# since this is a user install add the pipenv to path
export PATH="$(python -m site --user-base)/bin:$PATH"
echo 'export PATH="$(python -m site --user-base)/bin:$PATH' >> ~/.profile
# sometimes I like virtualenv more or need it
pip install virtualenv
brew install node
#### Mac Programs
brew cask install visual-studio-code
brew cask install docker
brew cask install slack
brew cask instlal spotify
## Jetbrains installs
# For these it is important to use the correct jetbrains account to sync settings
# once it starts up the first time and editor opens hit the little cloud in the bottom right
# then choose sync plugins. It will ask to restart the ide, do it.
# then to get the themes and stuff to work correctly you need to completely close out of the ide and choose
# material theme settings then everything should be setup correctly for that jetbrains account
brew cask install goland
brew cask install pycharm
brew cask intsall rider
# maybe won't need soon
brew cask install powershell
## vim configuration
# install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cp .vimrc ~/.vimrc