-
-
Save sanyer/532117a7937fc576ac2bd0b5f19bff9f to your computer and use it in GitHub Desktop.
Bootstrap local macOS devenv
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/sh | |
# basic-system-languages.sh: ruby & python | |
brew install pyenv rbenv | |
cat <<EOF >>~/.zshrc | |
eval "$(pyenv init -)" | |
eval "$(rbenv init -)" | |
EOF | |
pyenv init - && pyenv install 3.10:latest && pyenv rehash | |
rbenv init - && rbenv install $(rbenv install -L | grep -v - | tail -1) && rbenv rehash | |
python3 -m pip install --user pipx | |
python3 -m pipx ensurepath | |
# cloud-toosl.sh: gcloud & awscli | |
pipx install awscli | |
wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-397.0.0-darwin-arm.tar.gz | |
tar xf google-cloud-cli-397.0.0-darwin-arm.tar.gz ~/.local/ | |
~/.local/google-cloud-sdk/install.sh --usage-reporting false --rc-path ~/.zshrc --command-completion true --path-update true --quiet | |
# dev-tools.sh: z4h & p10k & direnv & tmux | |
curl -sfL https://direnv.net/install.sh | bin_path=~/.local/bin bash | |
cd && git clone https://github.com/gpakosz/.tmux.git && ln -s -f .tmux/.tmux.conf && cp .tmux/.tmux.conf.local . | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/romkatv/zsh4humans/v5/install)" | |
echo Install all AppStore Apps at first! | |
# no solution to automate AppStore installs | |
read -p "Press any key to continue... " -n1 -s | |
echo '\n' | |
echo Install and Set San Francisco as System Font | |
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)" | |
echo Install Homebrew, Postgres, wget and cask | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew tap homebrew/science | |
brew install wget | |
brew install postgresql | |
brew install go | |
brew install node | |
brew install ant | |
brew install ffmpeg | |
brew install eigen | |
brew install opencv | |
npm install -g gitjk | |
sudo npm install -g cordova | |
npm install phonegap -g | |
brew tap phinze/cask | |
brew install brew-cask | |
#brew cask search | |
#brew cask uninstall app | |
# Core Functionality | |
echo Install Core Apps | |
brew cask install --appdir="/Applications" alfred | |
brew cask install --appdir="/Applications" dropbox | |
brew cask install --appdir="/Applications" little-snitch | |
brew cask install --appdir="~/Applications" transmit | |
brew cask install --appdir="~/Applications" vlc | |
brew cask install --appdir="~/Applications" iterm2 | |
brew cask install --appdir="~/Applications" java | |
## get from App Store | |
#brew cask install --appdir="/Applications" evernote | |
#brew cask install --appdir="/Applications" wunderlist | |
#brew cask install --appdir="/Applications" clamxav | |
# Development | |
echo Install Dev Apps | |
brew cask install --appdir="/Applications" github | |
brew cask install --appdir="/Applications" heroku-toolbelt | |
brew cask install --appdir="/Applications" sublime-text | |
brew cask install --appdir="/Applications" webstorm | |
brew cask install --appdir="/Applications" pycharm-pro | |
brew cask install --appdir="/Applications" light-table | |
brew cask install --appdir="/Applications" macvim | |
brew cask install --appdir="/Applications" virtualbox | |
brew cask install --appdir="/Applications" vagrant | |
brew cask install --appdir="/Applications" sourcetree | |
brew cask install --appdir="/Applications" charles | |
brew cask install --appdir="/Applications" easyfind | |
# Google Slavery | |
echo Install Google Apps | Chrome not included cause of 1Password Plugin | |
# brew cask install --appdir="/Applications" google-chrome | |
brew cask install --appdir="/Applications" google-drive | |
brew cask install --appdir="/Applications" google-music-manager | |
brew cask install --appdir="/Applications" google-earth | |
brew cask install --appdir="/Applications" chromecast | |
# Nice to have | |
echo Install Some additional Apps | |
brew cask install --appdir="/Applications" firefox | |
brew cask install --appdir="/Applications" skype | |
brew cask install --appdir="/Applications" jdownloader | |
brew cask install --appdir="/Applications" lastfm | |
brew cask install --appdir="/Applications" all2mp3 | |
brew cask install --appdir="/Applications" spotify | |
brew cask install --appdir="/Applications" spotify-notifications | |
# Link Cask Apps to Alfred | |
brew cask alfred link | |
# cleanup | |
brew cleanup --force | |
rm -f -r /Library/Caches/Homebrew/* | |
echo "Security: https://objective-see.com/products.html" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export HOMEBREW_CASK_OPTS="--appdir=/Applications"