[ZSH] Pin terminal title to user@host over ssh

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fabian IsingandClaude Opus 5.5 committed 2026-10-19 11:14:48 +02:00
1 parent 327ce21440
commit e4f6b4b6ab
1 file changed
+7
+7
View File
@@ -108,3 +108,10 @@ pastefinish() {
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(bracketed-paste)
# Over ssh, pin the terminal title to user@host (no cwd, no running command):
# the local tmux labels ssh panes with it (see main's .tmux.conf).
if [[ -n $SSH_CONNECTION ]]; then
ZSH_THEME_TERM_TITLE_IDLE='%n@%m'
add-zsh-hook -d preexec omz_termsupport_preexec
fi