summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
diff options
context:
space:
mode:
authorAndrew Janke <andrew@apjanke.net>2015-08-09 15:15:12 -0400
committerAndrew Janke <andrew@apjanke.net>2015-08-09 15:15:12 -0400
commit17da983442f8872e147381db215266735751abc8 (patch)
treed94714c3bf91529af598c0a2a1fad7dbdd9a5333 /lib/termsupport.zsh
parent3d5b3430fd9da12f6e33f534e487fe9b18928ac7 (diff)
downloadzsh-17da983442f8872e147381db215266735751abc8.tar.gz
zsh-17da983442f8872e147381db215266735751abc8.tar.bz2
zsh-17da983442f8872e147381db215266735751abc8.zip
termsupport: avoid repeated dir in window title in Terminal.app
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r--lib/termsupport.zsh4
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 {