Last active
November 10, 2022 07:37
-
-
Save aldegoeij/7650f221b915af12c2f9b9f215c2ef90 to your computer and use it in GitHub Desktop.
A Cloud Engineer's Machine
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 | |
# This runs fabulously on macOS Mojave! | |
echo "" | |
echo "Do NOT run this as root! You were warned..." | |
echo "" | |
# Install Brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Install brew packages | |
brew update && brew upgrade && brew install mas | |
brew install zsh wget direnv git gnupg htop telnet jq \ | |
python ipython bpython \ | |
npm yarn \ | |
awscli tflint tfswitch \ | |
go dep | |
brew cask install homebrew/cask-fonts/font-menlo-for-powerline | |
# Install Oh My Zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Install global PIP packages | |
pip3 install virtualenvwrapper pylint autopep8 flake8 bpython | |
# Install gloabl NPM packages | |
npm install -g create-react-cli react-native-cli expo-cli @aws-amplify/cli | |
# Set some nice exports | |
# echo "export PATH=/usr/local/bin:/usr/local/sbin:$PATH" | tee -a $HOME/.zshrc | |
echo "export WORKON_HOME=~/.virtualenvs" | tee -a $HOME/.zshrc | |
echo "export PROJECT_HOME=~/Projects" | tee -a $HOME/.zshrc | |
echo "export VIRTUALENV_PYTHON=/usr/local/bin/python3" | tee -a $HOME/.zshrc | |
echo "export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3" | tee -a $HOME/.zshrc | |
# echo "export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'" | tee -a $HOME/.zshrc | |
echo "export PIP_VIRTUALENV_BASE=$WORKON_HOME" | tee -a $HOME/.zshrc | |
echo "export PIP_RESPECT_VIRTUALENV=true" | tee -a $HOME/.zshrc | |
echo "source /usr/local/bin/virtualenvwrapper.sh" | tee -a $HOME/.zshrc | |
echo "eval '$(direnv hook zsh)'" | tee -a $HOME/.zshrc | |
hash -r | |
# Install AppStore apps (WhatsApp, Slack, 1Password) | |
mas install 1147396723 803453959 1333542190 | |
# Install AppStore apps (Xcode) | |
mas install 497799835 | |
# Install XCode tools, coz you need it | |
sudo xcode-select --install | |
sudo xcode-select -s /Applications/Xcode.app | |
sudo xcodebuild -license | |
echo "Don't forget to install these handy tools:" | |
echo " - Docker https://hub.docker.com/editions/community/docker-ce-desktop-mac" | |
echo " - Karabiner https://pqrs.org/osx/karabiner/" | |
echo " - NanoRC use: curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment