Skip to content

Instantly share code, notes, and snippets.

@jwmann
Last active January 21, 2023 03:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jwmann/db1b4d900c1de8a695118c6279a95d11 to your computer and use it in GitHub Desktop.
Save jwmann/db1b4d900c1de8a695118c6279a95d11 to your computer and use it in GitHub Desktop.
Initialize & Install MacOS Dev Tools and Apps
#!/usr/bin/env sh
#
# Initialize & Install MacOS Dev Tools with Default Homebrew / Casks
# To execute: save and `chmod +x ./macos-init.sh` then `./macos-init.sh`
#
# MacVim Requires the entirety of XCode to install, so install XCode before.
# Then Run `sudo xcode-select -s /Applications/Xcode.app/Contents/Developer` to use those command-line tools.
# Modern Homebrew should be installing XCode commandline tools on its own if it's missing
# If it doesn't, `xcode-select --install` should install it.
#
# Thanks to Mike Rogers for the idea: https://mikerogers.io/2014/05/20/my-osx-setup.html
xcode-select --install
if [ -d ~/.oh-my-zsh ]; then
echo "oh-my-zsh is already installed. Skipping.."
else
echo "Installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
which -s brew
if [[ $? != 0 ]] ; then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Updating homebrew..."
brew update
fi
echo "Installing brew cask and taps..."
brew tap homebrew/cask-versions
brew tap homebrew/cask-fonts
# Homebrew
echo "Installing terminal tools..."
## Dev Tools
brew install macvim
brew install neovim
brew install ripgrep
brew install the_silver_searcher
brew install git
# brew install ctags
brew install --HEAD universal-ctags/universal-ctags/universal-ctags
# brew install drush
## Install nvm
if [ -d ~/.nvm ]; then
echo "nvm is already installed. Skipping.."
else
echo "Installing nvm..."
brew install nvm
chmod u+x ~/.nvm/nvm.sh
export NVM_DIR="$HOME/.nvm"
source ~/.nvm/nvm.sh
nvm install --lts
fi
brew install pyenv
brew install pyenv-virtualenv
brew install docker
brew install docker-compose
brew install colima
brew install drud/ddev/ddev
brew install nss
brew install tmux
brew install yarn
brew install bower
brew install awscli
brew install dopplerhq/doppler/doppler
brew install pantheon-systems/external/terminus
# dotfiles and configs
brew install rcm
brew install mackup
brew install lastpass-cli
brew install exiftool
# brew install bash-completion
brew install rename
brew install htop
brew install switchaudio-osx
brew install screenfetch
brew install screenresolution
brew install duti
# Homebrew Cask Apps
echo "Installing Dev Apps..."
brew install --cask iterm2
brew install --cask visual-studio-code
brew install --cask mamp
# brew install --cask virtualbox
# brew install --cask vagrant
brew install --cask postman
brew install --cask docker
brew install --cask android-platform-tools
brew install --cask tunnelblick
brew install --cask cyberduck
brew install --cask gpg-suite
brew install --cask qlcolorcode
## Other Apps
echo "Installing Regular Apps..."
# brew install --cask quicksilver
brew install --cask alfred
brew install --cask dropbox
brew install --cask google-drive
brew install --cask little-snitch
brew install --cask google-chrome
brew install --cask microsoft-edge
brew install --cask firefox
brew install --cask mimestream
brew install --cask microsoft-teams
brew install --cask droplr
brew install --cask transmission
brew install --cask vlc
brew install --cask iina
# brew install --cask rocket-chat
# brew install --cask slack
# brew install --cask skype
brew install --cask geektool
brew install --cask keka
brew install --cask steam
brew install --cask ticktick
brew install --cask discord
brew install --cask messenger
brew install --cask whatsapp
brew install --cask expressvpn
# Makes Images for USB drives
brew install --cask balenaetcher
# Fonts
echo "Installing Fonts..."
brew install --cask font-fira-code
# Install phpbrew
# echo "Installing phpbrew..."
# curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar && chmod +x phpbrew.phar && sudo mv phpbrew.phar /usr/local/bin/phpbrew
which -s terminus
if [[ $? != 0 ]] ; then
terminus aliases --all
fi
# Turn off that macOS key accent thing
defaults write -g ApplePressAndHoldEnabled -bool false
echo "Installing cert..."
mkcert -install
# Install Powerlevel 10k
echo "Installing Powerlevel 10k..."
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment