Start with a clean install.
Open the terminal app and copy and paste the commands.
This is probably outdated as I update this when setting up MacOs on a new machine.
! Only run these commands if you know what you are doing. !
Widen the space between apps in Dock #
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && \
killall Dock
Enable autohide dock #
defaults write com.apple.dock autohide -boolean true && \
killall Dock
Show hidden files in finder #
defaults write com.apple.finder AppleShowAllFiles -boolean true && \
killall Finder
Create projects folder #
(here I store my coding related files & repositories)
mkdir -p ~/projects
Install Xcode #
xcode-select --install
Install brew #
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
Install shells #
brew install zsh
brew install zsh-completions
brew install --cask iterm2
Customize shell #
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
Autosuggestions #
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Add inside ~/.zshrc:
plugins=(
# other plugins...
zsh-autosuggestions
)
Install & customize git #
brew install git
cd ~
touch .gitconfig
open .
Add to .gitconfig:
[alias]
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
sync = town sync
# Pretty log output
hist = log --graph --pretty=format:'%Cred%h%Creset %s%C(yellow)%d%Creset %Cgreen(%cr)%Creset [%an]' --abbrev-commit --date=relative
[color]
# Use colors in Git commands that are capable of colored output when
# outputting to the terminal. (This is the default setting in Git ≥ 1.8.4.)
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
Install browsers #
brew install --cask firefox
brew install --cask chromium
brew install --cask google-chrome
brew install --cask brave-browser
brew install --cask opera
Install development tools #
brew install --cask sublime-text
brew install --cask sublime-merge
brew install --cask visual-studio-code
brew install go
brew install node
brew install yarn
brew install git-town
brew install --cask docker
brew install gh
Install social tools #
brew install --cask discord
brew install --cask slack
brew install --cask signal
Install design, content, and other tools #
brew install --cask figma
brew install --cask obs
brew install --cask adobe-creative-cloud
brew install --cask vlc
brew install --cask foobar2000
brew install --cask figma
brew install youtube-dl
Install misc. tools #
brew install alt-tab
brew install --cask rectangle
Reset Launchpad & Dock #
defaults write com.apple.dock ResetLaunchPad -boolean true; killall Dock
brew update && brew upgrade && brew doctor && brew cleanup
Browser settings:
- Turn off save passwords on all browsers
- uBlock Origin
- HTTPS Everywhere
- Privacy Badger