Skip to content

Instantly share code, notes, and snippets.

@awongCM
Last active February 20, 2024 11:23
Show Gist options
  • Save awongCM/2e754ade92dbfe1d90a516c71833f3f3 to your computer and use it in GitHub Desktop.
Save awongCM/2e754ade92dbfe1d90a516c71833f3f3 to your computer and use it in GitHub Desktop.
Install and Configure macOS
#### HOMEBREW PACKAGE MANAGER ####
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
brew update
# Oh-my-zsh + this link for more customisation - https://medium.com/crypticcrazeforcs/customising-oh-my-zsh-in-macos-6d4e24ef983
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
# Development Software
brew install --cask google-chrome
brew install --cask firefox
brew install --cask brave-browser
brew install --cask visual-studio-code
brew install --cask intellij-idea-ce
brew install --cask pycharm-ce
brew install --cask iterm2
brew install --cask sublime-text
brew install --cask docker
brew install --cask sourcetree
brew install --cask postman
brew install --cask skitch
# Communications
brew install --cask microsoft-teams
brew install --cask slack
brew install --cask discord
brew install --cask whatsapp
# Entertainment
brew install --cask spotify
# Tooling
brew install \
stats \
python3 \
volta \
openjdk \
git \
postgresql@15 \
vim \
bash \
# Apache Kafka
brew install kafka
# Apache Spark
brew install apache-spark
# Jenkins
brew install jenkins-lts
# JDK settings
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc
#### MY MACOS DEFAULTS OVERRIDES####
# Dock
defaults write com.apple.dock "tilesize" -int "24" && killall Dock
defaults write com.apple.dock largesize -int "128" && killall Dock
defaults write com.apple.dock "mineffect" -string "genie" && killall Dock
defaults write com.apple.dock "autohide" -bool "true" && killall Dock
defaults write com.apple.dock "autohide-time-modifier" -float "0.45" && killall Dock
defaults write com.apple.dock "autohide-delay" -float "0.2" && killall Dock
defaults write com.apple.finder ShowPathBar -bool true && killall Finder
defaults write com.apple.finder ShowStatusBar -bool true && killall Finder
# Finder
defaults write com.apple.finder "AppleShowAllFiles" -bool "false" && killall Finder
defaults write com.apple.finder "AppleShowAllFiles" -bool "true" && killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment