Last active
March 9, 2023 13:39
-
-
Save gregjotau/3a2746f97e554e4eeb3062c9fb75c869 to your computer and use it in GitHub Desktop.
bootstrap a mac
This file contains hidden or 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
#!/usr/bin/env bash | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
fi | |
# Oh-my-zsh - zsh default shell on mac | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc | |
source ~/.zshrc | |
# GUI programs, --cask / cask commands are no longer needed | |
PACKAGES=( | |
ffmpeg | |
git | |
imagemagick | |
npm | |
youtube-dl | |
openssl | |
ansible | |
azure-cli | |
docker-compose | |
google-chrome | |
docker | |
jetbrains-toolbox | |
slack | |
spotify | |
imageoptim | |
obs | |
postman | |
) | |
echo "Installing packages..." | |
brew install ${PACKAGES[@]} | |
# Dock | |
defaults write com.apple.dock autohide -bool true | |
defaults write com.apple.dock autohide-delay -float 0 | |
defaults write com.apple.dock autohide-time-modifier -float 0 | |
# Safari | |
defaults write com.apple.Safari IncludeDevelopMenu -bool true | |
echo "Bootstrapping complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment