Skip to main content
Short/cuts
beginner 10 minutes

Ghostty Terminal Keyboard Shortcuts: Complete Cheat Sheet (2026)

Every default Ghostty keyboard shortcut for splits, tabs, navigation, and config. macOS and Linux keybindings plus customization guide.

Tools used: Ghostty

Last updated: March 3, 2026

Ghostty's essential shortcuts: Cmd+D (split right), Cmd+T (new tab), Cmd+W (close surface), and Cmd+Comma (open config) on macOS. On Linux, use Ctrl+Shift instead of Cmd. All keybindings are fully customizable through the config file at ~/.config/ghostty/config using the syntax keybind = trigger=action. This cheat sheet covers every default shortcut across macOS and Linux.

The terminal with 45K GitHub stars has no shortcuts page. Here’s the complete list.

Ghostty — the GPU-accelerated terminal emulator created by Mitchell Hashimoto (co-founder of HashiCorp, creator of Terraform and Vagrant) — hit 45K+ stars on GitHub and became one of the most talked-about developer tools of 2025. It shipped a 1.0 release with native tabs, splits, Quick Terminal, and platform-native UI on both macOS and Linux.

But there’s one problem developers keep hitting: the official docs don’t have a simple shortcuts reference page. The most-starred shortcut resource is a GitHub gist with 177 stars where users comment “why isn’t this in the official docs?”

Below is the complete, verified cheat sheet — organized by category with both macOS and Linux keybindings.

Window Management

ActionmacOSLinux
New windowCmd+NCtrl+Shift+N
Close windowCmd+Shift+WAlt+F4
Close all windowsCmd+Shift+Option+W
Toggle fullscreenCmd+EnterCtrl+Enter
Quit GhosttyCmd+QCtrl+Shift+Q

Tab Management

ActionmacOSLinux
New tabCmd+TCtrl+Shift+T
Close tab/surfaceCmd+WCtrl+Shift+W
Previous tabCmd+Shift+[Ctrl+Shift+Tab or Ctrl+Page Up
Next tabCmd+Shift+]Ctrl+Tab or Ctrl+Page Down
Go to tab 1–8Cmd+1 through Cmd+8Alt+1 through Alt+8
Go to last tabCmd+9Alt+9

Pro tip: Tabs in Ghostty use the platform’s native tab bar — on macOS, they look and behave exactly like Safari or Finder tabs, including drag-to-reorder.

Split Management

Ghostty’s split system is one of its strongest features, rivaling tmux for everyday use without any configuration. If you’re comparing terminal split workflows, see our Windsurf IDE shortcuts guide for how AI editors handle a similar concept.

ActionmacOSLinux
New split (right)Cmd+DCtrl+Shift+O
New split (down)Cmd+Shift+DCtrl+Shift+E
Close splitCmd+WCtrl+Shift+W
Focus previous splitCmd+[Ctrl+Super+[
Focus next splitCmd+]Ctrl+Super+]
Focus split upCmd+Option+UpCtrl+Alt+Up
Focus split downCmd+Option+DownCtrl+Alt+Down
Focus split leftCmd+Option+LeftCtrl+Alt+Left
Focus split rightCmd+Option+RightCtrl+Alt+Right
Toggle split zoomCmd+Shift+EnterCtrl+Shift+Enter
Resize split upCmd+Ctrl+UpCtrl+Super+Shift+Up
Resize split downCmd+Ctrl+DownCtrl+Super+Shift+Down
Resize split leftCmd+Ctrl+LeftCtrl+Super+Shift+Left
Resize split rightCmd+Ctrl+RightCtrl+Super+Shift+Right
Equalize splitsCmd+Ctrl+=Ctrl+Super+Shift+=

Toggle split zoom (Cmd+Shift+Enter) is especially useful — it temporarily maximizes the focused split to full-window size, then restores the layout when you press it again.

Copy and Paste

ActionmacOSLinux
CopyCmd+CCtrl+Shift+C
PasteCmd+VCtrl+Shift+V
Paste from selectionShift+Insert

Scrolling and Navigation

ActionmacOSLinux
Scroll to topCmd+HomeShift+Home
Scroll to bottomCmd+EndShift+End
Scroll page upCmd+Page UpShift+Page Up
Scroll page downCmd+Page DownShift+Page Down
Jump to previous promptCmd+UpCtrl+Shift+Page Up
Jump to next promptCmd+DownCtrl+Shift+Page Down
Clear screenCmd+K

Jump to prompt (Cmd+Up/Cmd+Down) lets you skip between shell prompts in your scrollback — similar to how you’d navigate between cells in a notebook. This requires shell integration to work correctly.

Font Size

ActionmacOSLinux
Increase font sizeCmd+= or Cmd++Ctrl+= or Ctrl++
Decrease font sizeCmd+-Ctrl+-
Reset font sizeCmd+0Ctrl+0

Configuration and Inspector

ActionmacOSLinux
Open config fileCmd+,Ctrl+,
Reload configCmd+Shift+,Ctrl+Shift+,
Toggle terminal inspectorCmd+Option+ICtrl+Shift+I

Reload config (Cmd+Shift+,) applies changes instantly without restarting Ghostty — you can tweak themes, fonts, and keybindings and see them take effect immediately.

Scrollback Export

ActionmacOSLinux
Write scrollback to file (paste)Cmd+Shift+JCtrl+Shift+J
Write scrollback to file (open)Cmd+Shift+Option+JCtrl+Shift+Alt+J

This exports your terminal’s scrollback buffer to a file — useful for saving long build logs, error traces, or command output for later reference.

Quick Terminal (macOS Only)

Quick Terminal is Ghostty’s drop-down terminal that appears from the top of your screen — similar to iTerm2’s hotkey window or Guake on Linux.

To enable it, add this to your config file:

keybind = global:cmd+grave_accent=toggle_quick_terminal

This binds Cmd+` (backtick/tilde key) to toggle the Quick Terminal globally, even when Ghostty isn’t focused. You’ll need to grant Ghostty accessibility permissions in System Settings > Privacy & Security > Accessibility.

Customizing Your Keybindings

Ghostty’s keybinding system is one of the most flexible among terminal emulators. Edit your config file at ~/.config/ghostty/config to add or override any keybinding.

Basic syntax:

keybind = trigger=action

Examples:

# Remap copy/paste
keybind = ctrl+c=copy_to_clipboard
keybind = ctrl+v=paste_from_clipboard

# Add a search workaround (no built-in search yet)
keybind = ctrl+f=write_scrollback_file:open

# Make a global hotkey
keybind = global:ctrl+grave_accent=toggle_quick_terminal

# Unbind a default shortcut
keybind = cmd+t=unbind

Modifier keys:

  • ctrl (alias: control)
  • shift
  • alt (alias: opt, option)
  • super (alias: cmd, command)

Trigger prefixes for advanced behavior:

  • global: — Works even when Ghostty isn’t focused (macOS only, requires accessibility permissions)
  • unconsumed: — Sends the keypress to the running program in addition to triggering the action
  • performable: — Only triggers if the action can actually be performed (e.g., copy only when text is selected)
  • all: — Applies to all terminal surfaces, not just the focused one

List all default keybindings from the command line:

ghostty +list-keybinds --default

View full config with documentation:

ghostty +show-config --default --docs

Known Limitations

  • No built-in search — This is the most-requested feature (GitHub issue #189). Workaround: bind write_scrollback_file:open to a key and search the exported file.
  • No Windows support — Ghostty currently runs on macOS and Linux only.
  • The fn/globe key cannot be used as a modifier — this is a limitation of the underlying OS and GUI toolkits.

Methodology

All shortcuts in this cheat sheet were verified against the official Ghostty keybinding documentation, the action reference, and cross-referenced with the community shortcuts gist (177 stars). Ghostty is free and open-source under the MIT license — download it from ghostty.org or view the source on GitHub.

For related guides: Windsurf IDE Keyboard Shortcuts (AI coding editor shortcuts), How to build an AI content workflow (productivity automation), and ChatGPT vs Claude vs Gemini (AI tools comparison).

Get the AI tools briefing

Weekly briefing: best tools, honest comparisons, workflow automations. No sponsor influence.

No spam, ever. Unsubscribe anytime.

Frequently Asked Questions

What are the most important Ghostty keyboard shortcuts?

The essential Ghostty shortcuts are Cmd+D (new split right), Cmd+Shift+D (new split down), Cmd+T (new tab), Cmd+W (close tab or split), and Cmd+Comma (open config). On Linux, replace Cmd with Ctrl+Shift for most actions. You can also toggle fullscreen with Cmd+Enter and access Quick Terminal with a global keybind.

Where is the Ghostty config file located?

The Ghostty configuration file is located at ~/.config/ghostty/config on both macOS and Linux. It is a plain text file with key-value pairs — no JSON, YAML, or TOML syntax required. If the file does not exist, Ghostty uses sensible defaults. You can open it directly from Ghostty with Cmd+Comma (macOS) or Ctrl+Comma (Linux).

How do I customize keyboard shortcuts in Ghostty?

Add custom keybindings to your config file using the syntax keybind = trigger=action. For example, keybind = ctrl+shift+r=reload_config. Triggers support modifiers (ctrl, shift, alt, super/cmd) and you can run ghostty +list-keybinds --default to see all available default bindings. You can also use ghostty +list-actions to see every available action.

Does Ghostty have a built-in search function?

As of early 2026, Ghostty does not have built-in terminal search. This is a known limitation tracked in GitHub issue #189. A common workaround is to add keybind = ctrl+f=write_scrollback_file:open to your config, which saves terminal output to a file you can search with your system's text editor. Many users also use tmux search as an alternative.

Is Ghostty free and how does it compare to iTerm2?

Ghostty is completely free and open-source under the MIT license with 45K+ GitHub stars. Unlike iTerm2 (macOS only), Ghostty runs on both macOS and Linux with GPU-accelerated rendering and platform-native UI. Created by Mitchell Hashimoto (co-founder of HashiCorp, creator of Terraform), Ghostty offers similar split and tab features to iTerm2 but with significantly faster rendering performance.