as of Apr 2026, Sequoia 15
Dead simple script to setup my new Mac:
cd ~/Downloads
curl -sL https://raw.githubusercontent.com/gianpaj/mac-setup-script/master/defaults.sh | bash
curl -O https://raw.githubusercontent.com/gianpaj/mac-setup-script/master/install.sh
chmod +x install.sh
./install.sh
./install.sh >> install_log.txt-
Install brew
-
Clone repo
git clone git@github.com:gianpaj/mac-setup-script.git
-
Set macOS settings
cd mac-setup-script bash defaults.sh -
Exclude generated data from Spotlight
bash spotlight-exclusions.sh
-
Install apps
bash install.sh
-
Reboot
Run spotlight-exclusions.sh to stop Spotlight from indexing code,
developer caches, and virtual machine data. The script creates a
.metadata_never_index file in each directory that exists. It needs no
administrator privileges and is safe to run more than once.
The script excludes these directories:
~/github~/freelance~/tmp~/esp~/Library/Developer~/Library/Application Support/Zed~/Library/Application Support/Claude~/Library/Containers/com.docker.docker/Data~/Library/Group Containers/*.orbstack/data
Spotlight and Finder search omit files under these directories. This does not delete files, free disk space, or affect search inside development tools.
-
Karabiner Elements
- to fix the back tick character ` when pressing §
non_us_backslashtograve_accent_and_tilde
-
Alfred workflows
-
SwitchAudioSource (to switch between audio devices)
-
Switch Appearance – Change between Light and Dark Mode
-
-
Linear - Ruler app with web-development in mind
My bug fix
git clone git@github.com:gianpaj/linear.git git checkout -b upgrade-electron-package origin/upgrade-electron-package npm install npm run package
Disable Gatekeeper:
sudo spctl --master-disable
- Horo (timer/pomorodo menu app)
-
VSCode
-
Android Studio
- Android SDK path
-
Xcode
- Command-line tools
-
asdf (Manage multiple runtime versions - Node.js, Python, etc.)
-
iTerm2
-
Zsh (Guide)
-
oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"-
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/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions -
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions -
pure - Pretty, minimal and fast ZSH prompt
(already installed in
install.sh) -
Update
.zshrc
-
-
Load
.zshrcfrom Dropboxcd ~ ln -s ~/Dropbox/Mac/.zshrc .zshrc # results in $ l .zshrc lrwxr-xr-x - gianpaj 30 Aug 2022 .zshrc -> /Users/gianpaj/Dropbox/Mac/.zshrc
-
Load
.aliasesfrom Git repocd ~ ln -s ~/github/gianpaj/mac-setup-script/bash/.aliases .aliases # results in $ l .aliases lrwxr-xr-x - gianpaj 29 Nov 12:11 -M .aliases -> /Users/gianpaj/github/gianpaj/mac-setup-script/bash/.aliases
-
Load
~/.config/starship.tomlcd ~ ln -s ~/github/gianpaj/mac-setup-script/bash/starship.toml ~/.config/starship.toml # results in $ l ~/.config/starship.toml lrwxr-xr-x@ - gianpaj 13 Sep 18:49 -N /Users/gianpaj/.config/starship.toml -> /Users/gianpaj/github/gianpaj/mac-setup-script/bash/starship.toml
-
-
asdf
asdf plugin-add python asdf install python latest ln -s ~/github/gianpaj/mac-setup-script/.default-npm-packages ~/.default-npm-packages
-
zed config
ln -s ~/github/gianpaj/mac-setup-script/apps/zed/settings.json ~/.config/zed/settings.json ln -s ~/github/gianpaj/mac-setup-script/apps/zed/keymap.json ~/.config/zed/keymap.json ln -s ~/github/gianpaj/mac-setup-script/apps/zed/snippets.json ~/.config/zed/snippets.json
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -dUpgrade all security packages
sudo apt-get -s dist-upgrade | grep "^Inst" | grep -i securi | awk -F " " {'print $2'}
sudo apt-get -s dist-upgrade | grep "^Inst" | grep -i securi | awk -F " " {'print $2'} | xargs sudo apt-get install -y- Dropbox
- Spotify
- App Cleaner
- Window and Keyboard managers (skhd and yabai)
about:config
- Disable zooming with Cmd + Mouse wheel
mousewheel.with_meta.action=0disabled from3zoom
- Auto Tab Discard (similar to The Great/Marvellous Suspender)
- Grammarly
- uBlock origin
- New Tab Clock
- uBlock origin
- Ghostery - Privacy Blocker
- The Marvellous Suspender
- LastPass
- Grammarly
- Pushbullet
- Wappalyzer
- Time Zone Converter - Savvy Time
- Hide Likes
- Hide Feed
- xTab - Limit the maximum number of tabs that can be open at the same time.
- Reader View
- Google Image Search
-
Giphy Capture
-
or kap
brew install kap --cask

