Tue 04 March 2025

Filed under Misc

Tags misc

Ghostty terminal

Ghostty is terminal manager with GPU acceleration and great looks. It works mostly out of the box, but you might want to do some setups to tailor it to your particular needs.

Here is how I set it up.

Installation

I won't spend much time on installation details, I installed it using brew there are multiple installation options, surprisingly flatpack is not within the options at the moment. For further details please check ghostty installation instructions.

Configuration

Config file is available on these locations

$HOME/Library/Application Support/com.mitchellh.ghostty/config

$XDG_CONFIG_HOME/ghostty/config

I use $XDG_CONFIG_HOME as I keep all my config there.

Configuration reference is available on line. And can be generated from the command line doing

ghostty +show-config --default --docs

And finally to list available themes ghostty +list-themes.

This is my config, it's available with my dotfiles

# ~/.config/ghostty/config
#
# to show the default configuration with documentation.
# ghostty +show-config --default --docs
#

font-family = "JetBrains Mono"
#font-size = 14

# Run `ghostty +list-themes` to browse available themes.
theme = SynthwaveAlpha
cursor-style = block

background-opacity = 0.96
background-blur-radius = 40


# shell integration.
shell-integration = bash
shell-integration-features = cursor, sudo, title

macos-titlebar-style = tabs

# Auto-update Ghostty when a new release is available.
auto-update = download

mouse-hide-while-typing = true

# keymaps
#keybind = global:cmd+`=toggle_quick_terminal
keybind = cmd+left=previous_tab
keybind = cmd+right=next_tab

# byobu keybinds fix
macos-option-as-alt = left
keybind = alt+left=unbind
keybind = alt+right=unbind

#
quit-after-last-window-closed = true
window-new-tab-position = end

I had some issues with SSH, so I added this to my ~/.ssh/config which fixed my issues.

Host *
    # ghostty https://ghostty.org/docs/help/terminfo
    SetEnv TERM=xterm-256color
    # end ghostty
Comment

Gonzalo Saenz © Gonzalo Saenz Powered by Pelican and Twitter Bootstrap. Icons by Font Awesome and Font Awesome More