A configuration repository for quickly bootstrapping a macOS development terminal environment, currently focused on Ghostty + zsh.
After running the install script, it will:
- Overwrite
~/.zshrcwithGhostty/.zshrcfrom this repo - Create the Ghostty config directory at
~/Library/Application Support/com.mitchellh.ghostty - Copy
Ghostty/config.ghosttyinto the Ghostty config directory - Copy the
Ghostty/.shelldirectory into your home directory as~/.shell
Script: install.sh
.
├── install.sh
├── README.md
└── Ghostty
├── .shell/
├── .zshrc
├── config.ghostty
└── README.md
- OS: macOS
- Ghostty installed
- Zinit for zsh plugin management installed
- zsh as your shell (the script writes to
~/.zshrc)
Run from the repository root:
chmod +x install.sh
./install.shOn success, you should see:
Done.
If you don't need any custom commands, please delete them.
cp -r "$SCRIPT_DIR/Ghostty/.shell" ~/in install.sh
for file in ~/.shell/*.sh; do
[ -f "$file" ] && source "$file"
donein ~/.zshrc.
- Config file:
Ghostty/config.ghostty - Default theme:
Catppuccin Mocha - Font:
Maple Mono NF CN - Includes quick terminal, split shortcuts, clipboard protection, and shell integration settings
See Ghostty/README.md for more details.
Ghostty/.zshrc: zsh environment variables and initialization entryGhostty/.shell/: custom shell functions and aliases
- The script overwrites your existing
~/.zshrc - The script overwrites your existing Ghostty config file
- If you already have custom settings, back them up first
Suggested backup commands:
cp ~/.zshrc ~/.zshrc.bak.$(date +%Y%m%d%H%M%S)
cp ~/Library/Application\ Support/com.mitchellh.ghostty/config.ghostty \
~/Library/Application\ Support/com.mitchellh.ghostty/config.ghostty.bak.$(date +%Y%m%d%H%M%S)If you created backups in advance, restore them with:
cp ~/.zshrc.bak.<timestamp> ~/.zshrc
cp ~/Library/Application\ Support/com.mitchellh.ghostty/config.ghostty.bak.<timestamp> \
~/Library/Application\ Support/com.mitchellh.ghostty/config.ghostty