X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/153355965a36f946106d15cde6fc375e87ed72c4..b87ac47edd232ce7c520d11c4a7299a1cbe03a20:/zsh/lib/title.zsh?ds=inline diff --git a/zsh/lib/title.zsh b/zsh/lib/title.zsh index 09c5947..c58da48 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)*}) @@ -9,6 +13,10 @@ case "$TERM" in function title_precmd { title "${(%):-[%n@%m] %~}" } function title_preexec { title "$1" } ;; + (*) + function title_precmd {} + function title_preexec {} + ;; esac autoload -U add-zsh-hook