Skip to content

Commit

Permalink
Set Terminfo for Ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
gzurowski committed Dec 31, 2024
1 parent 505bdaa commit b5cbfdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,14 @@ source "${HOMEBREW_PREFIX}/share/zsh-abbr/zsh-abbr.zsh"
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# Ghostty

# Set TERM variable to xterm-256color if running in Ghostty.
# See: https://ghostty.org/docs/help/terminfo
if [[ "$TERM_PROGRAM" == "ghostty" ]]; then
export TERM=xterm-256color
fi

# GPG
export GPG_TTY=$(tty)

Expand Down

0 comments on commit b5cbfdf

Please sign in to comment.