macOS + Homebrew setup for:
- fish
- ghostty
- 0xProto Nerd Font
- starship
- installs missing packages
- skips packages already installed
- sets fish as default shell
- adds starship to fish
- sets Ghostty font to
0xProto Nerd Font Mono - makes backups before config edits
- supports dry run
- supports uninstall
- macOS
- Homebrew
sudoaccesschshallowed for your user
setup-macos-shell.sh
Make script executable:
chmod +x setup-macos-shell.shInstall:
./setup-macos-shell.shDry run:
./setup-macos-shell.sh --dry-runUninstall:
./setup-macos-shell.sh --uninstallUninstall dry run:
./setup-macos-shell.sh --uninstall --dry-runThe script may create or edit:
~/.config/fish/config.fish~/.config/ghostty/config.ghostty~/.config/ghostty/configif it already exists/etc/shells
Before editing a file, the script saves:
<file>.bak.YYYYMMDD-HHMMSS
- uninstall switches shell back to
/bin/zshbefore removing fish - uninstall removes only lines added by this script
- backups are kept
- script does not remove fish from
/etc/shells