[ZSH] Pin user@host title in sudo/su shells too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e4f6b4b6ab
commit
9951ecf7a4
1 file changed
+3
-4
@@ -109,9 +109,8 @@ zstyle :bracketed-paste-magic paste-init pasteinit
|
|||||||
zstyle :bracketed-paste-magic paste-finish pastefinish
|
zstyle :bracketed-paste-magic paste-finish pastefinish
|
||||||
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(bracketed-paste)
|
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(bracketed-paste)
|
||||||
|
|
||||||
# Over ssh, pin the terminal title to user@host (no cwd, no running command):
|
# Pin the terminal title to user@host (no cwd, no running command): the local
|
||||||
# the local tmux labels ssh panes with it (see main's .tmux.conf).
|
# tmux labels ssh panes with it (see main's .tmux.conf). Unconditional, as
|
||||||
if [[ -n $SSH_CONNECTION ]]; then
|
# sudo -s/su drop $SSH_CONNECTION.
|
||||||
ZSH_THEME_TERM_TITLE_IDLE='%n@%m'
|
ZSH_THEME_TERM_TITLE_IDLE='%n@%m'
|
||||||
add-zsh-hook -d preexec omz_termsupport_preexec
|
add-zsh-hook -d preexec omz_termsupport_preexec
|
||||||
fi
|
|
||||||
Reference in new issue
Block a user