diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-08-09 15:15:12 -0400 |
---|---|---|
committer | Andrew Janke <andrew@apjanke.net> | 2015-08-09 15:15:12 -0400 |
commit | 17da983442f8872e147381db215266735751abc8 (patch) | |
tree | d94714c3bf91529af598c0a2a1fad7dbdd9a5333 /lib | |
parent | 3d5b3430fd9da12f6e33f534e487fe9b18928ac7 (diff) | |
download | zsh-17da983442f8872e147381db215266735751abc8.tar.gz zsh-17da983442f8872e147381db215266735751abc8.tar.bz2 zsh-17da983442f8872e147381db215266735751abc8.zip |
termsupport: avoid repeated dir in window title in Terminal.app
Diffstat (limited to 'lib')
-rw-r--r-- | lib/termsupport.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index e1c2e2f93..ecca516f2 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -23,6 +23,10 @@ function title { ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~" +# Avoid duplication of directory in terminals with independent dir display +if [[ $TERM_PROGRAM == Apple_Terminal ]]; then + ZSH_THEME_TERM_TITLE_IDLE="%n@%m" +fi # Runs before showing the prompt function omz_termsupport_precmd { |