Ghostty Terminal
Ghostty created by Mitchell Hashimoto, is a terminal emulator written in zig.
As a native macOS and GTK app, it provides a modern and intuitive terminal experience.
Navigation & Shortcuts
Cmd+T # New tabCmd+N # New windowCmd+W # Close tab/windowCmd+K # Clear terminal screenCmd+D # Split pane verticallyCmd+Shift+D # Split pane horizontallyAlt+<arrow key> # Navigate between panesCmd+Shift+[/] # Navigate between tabsCtrl+A # Move cursor to beginning of lineCtrl+E # Move cursor to end of lineOption+Click # Move cursor to clicked positionCmd+F # Find in terminalCtrl+Shift+F # Full-screen searchCmd+Shift+P # Command paletteConfiguration
~/.config/ghostty/config # Main configuration file
# Basic configurationfont-family = Berkeley Monofont-size = 14background-opacity = 0.95theme = catppuccin-mochashell = /bin/zsh
# To reload config: Cmd+Shift+P > Reload ConfigurationColour Scheme and Appearance
# In ~/.config/ghostty/config
# Theme optionstheme = catppuccin-mocha # Built-in theme# Or use custom coloursbackground = 1E1E2Eforeground = CDD6F4cursor-color = F5E0DC
# Font optionsfont-family = Berkeley Monofont-size = 14font-feature = caltfont-feature = ligaline-height = 1.2
# Window optionswindow-padding-x = 10window-padding-y = 10background-opacity = 0.95macos-option-as-alt = trueAdvanced Configuration
Keybindings
# In ~/.config/ghostty/configkeybind = ctrl+shift+t=new_tabkeybind = ctrl+shift+w=close_tabkeybind = super+shift+n=new_windowkeybind = ctrl+alt+left=previous_tabkeybind = ctrl+alt+right=next_tabWindow Customization
# In ~/.config/ghostty/configwindow-decoration = falsewindow-theme = darkconfirm-close-surface = falseadjust-cell-width = -1%adjust-cell-height = 3%Experimental Features
# In ~/.config/ghostty/configexperimental-features = allow-clipboard-accessexperimental-features = styled-underlinesexperimental-features = sixelTerminal Multiplexing
# Combine with tmux for enhanced session managementtmux-integration = truetmux-control-mode = trueURL Handling
# In ~/.config/ghostty/configurl-launcher = openclipboard-read = allowclipboard-write = allowCommand-Line Usage
ghostty --working-directory ~/projects # Open in specific directoryghostty --command "nvim file.txt" # Open with specific commandghostty --config "font-size=16" # Override config optionDevelopment Workflow Example
# Open a new Ghostty window for the projectghostty --working-directory ~/projects/myproject
# Split the window for different tasks# Cmd+D to create a vertical split
# In first pane: Edit codez myprojectnvim $(fzf)
# In second pane: Run server and monitorgstbun run dev
# Create another split for logs (Cmd+Shift+D for horizontal)tail -f logs/dev.log
# Use Alt+Arrow keys to navigate between panes# Use Cmd+Shift+P for command palette when neededPower User Tips
- Install Ghostty via Homebrew:
brew install --cask ghostty - Manage keybindings in
~/.config/ghostty/configwith thekeybinddirective - Benefit from GPU acceleration for smoother rendering
- Use
window-decorationsettings to customize window appearance - Configure dynamic window opacity with
adjust-cell-widthandadjust-cell-height - Enable experimental features with the
experimental-featuresoption - Use the
spawncommand to open new windows with specific configurations - Combine Ghostty with tmux for enhanced window management capabilities
- Define custom key sequences using
key-sequencein the config - Configure URL handling with the
url-launcherand related settings