Solved: unknown terminal xterm-ghostty

Add the following to your (platform specific 1) config file

shell-integration-features = ssh-env, ssh-terminfo

Now reload the configuration.

The configuration can be reloaded at runtime by pressing ctrl+shift+, (Linux) or cmd+shift+, (macOS).


  1. on macOS : $HOME/Library/Application\ Support/com.mitchellh.ghostty/config, and $XDG_CONFIG_HOME/ghostty/config for Linux if XDG_CONFIG_HOME is not defined, it defaults to $HOME/.config/ghostty/config↩︎