Last active
December 6, 2022 13:57
-
-
Save eyalgo/0e73c715e3ff818d4e9a3b2b0f4cbba1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install apps, packages, etc. | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null | |
brew tap homebrew/cask-versions | |
# brew cask install iterm2 | |
brew install --cask iterm2 | |
brew install zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
brew install zsh-syntax-highlighting | |
brew install git | |
# brew cask install docker | |
brew install --cask docker | |
brew install kubectl | |
brew link --overwrite --dry-run kubernetes-cli | |
brew install yarn | |
brew install vim | |
brew cask install visual-studio-code | |
brew update | |
brew tap AdoptOpenJDK/openjdk | |
brew cask install adoptopenjdk11 | |
##### | |
# brew cask install java | |
# brew cask install java11 | |
# brew install java11 | |
# sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk | |
##### | |
export CPPFLAGS="-I/usr/local/opt/openjdk@11/include" | |
brew install jenv | |
brew cask install postman | |
brew install go | |
brew install librdkafka pkg-config | |
brew install gradle | |
brew install maven | |
brew install gnupg | |
# Update zshrc | |
echo '\n' >> ~/.zshrc\n | |
echo '### PATH ###' >> ~/.zshrc\n | |
echo 'export PATH="/usr/local/opt/openjdk@11/bin:$PATH"' >> ~/.zshrc | |
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc\n | |
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.zshrc\n | |
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.zshrc\n | |
echo 'export PATH="$HOME/.git-shells:$PATH"' >> ~/.zshrc\n | |
echo 'export PATH="$HOME/.jenv/shims:$PATH"' >> ~/.zshrc\n | |
## | |
echo 'export SDKMAN_DIR="$HOME/.sdkman"' >> ~/.zshrc\n | |
echo '[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"' >> ~/.zshrc\n | |
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc\n | |
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.zshrc\n | |
echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.zshrc\n | |
echo '### JENV ###' >> ~/.zshrc\n | |
echo 'if which jenv > /dev/null; then eval "$(jenv init -)"; fi' >> ~/.zshrc\n | |
echo 'export PATH="$HOME/.jenv/bin:$PATH"' >> ~/.zshrc\n | |
echo 'eval "$(jenv init -)"' >> ~/.zshrc\n | |
echo '\n' >> ~/.zshrc\n | |
echo '### ALIASES ###' >> ~/.zshrc\n | |
echo 'alias k="kubectl"' >> ~/.zshrc\n | |
echo '### Go development ###' >> ~/.zshrc\n | |
echo 'export GOPATH="${HOME}/.go"' >> ~/.zshrc\n | |
echo 'export GOROOT="$(brew --prefix golang)/libexec"' >> ~/.zshrc\n | |
echo 'export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"' >> ~/.zshrc\n | |
echo '# The next line updates PATH for the Google Cloud SDK.' >> ~/.zshrc\n | |
echo 'if [ -f '$HOME/google-cloud-sdk/path.zsh.inc' ]; then . '$HOME/google-cloud-sdk/path.zsh.inc'; fi' >> ~/.zshrc\n | |
echo '# The next line enables shell command completion for gcloud.' >> ~/.zshrc\n | |
echo 'if [ -f '$HOME/google-cloud-sdk/completion.zsh.inc' ]; then . '$HOME/google-cloud-sdk/completion.zsh.inc'; fi' >> ~/.zshrc\n | |
### JENV Setup - Run once, not to add to ~/.zshrc ### | |
jenv add /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home | |
jenv global 11.0.8 | |
jenv local 11.0.8 | |
jenv shell 11.0.8 | |
jenv enable-plugin maven | |
jenv enable-plugin export | |
############################# | |
# Add to beginning of zshrc: | |
# >>> source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# Make sure located in the beginning: | |
# >>> export ZSH="$HOME/.oh-my-zsh" | |
# >>> ZSH_THEME="gallifrey" | |
# >>> plugins=(git colored-man-pages colorize pip python brew osx) | |
# >>> export LANG=en_US.UTF-8 | |
# >>> source $ZSH/oh-my-zsh.sh | |
# >>> source <(kubectl completion zsh) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment