X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/2f68eedb2cbba954ddc59d8ea29b52e924a188c5..11a0c9f9676ea9f8f0e8768b3e6cc569786320c4:/zsh/lib/title.zsh diff --git a/zsh/lib/title.zsh b/zsh/lib/title.zsh index 18fe7e2..118daa2 100644 --- a/zsh/lib/title.zsh +++ b/zsh/lib/title.zsh @@ -1,3 +1,7 @@ +if [[ "$TERM" == "linux" ]]; then + return +fi + function title { local tmp tmp=(${(f)*}) @@ -7,7 +11,7 @@ function title { case "$TERM" in (*xterm*|rxvt*) function title_precmd { title "${(%):-[%n@%m] %~}" } - function title_preexec { title "$1" } + function title_preexec { title "${(%):-[%n@%m]} $1" } ;; (*) function title_precmd {}