17da983442f8872e147381db215266735751abc8
- Author
- Andrew Janke <andrew@apjanke.net>
- Committer
- Andrew Janke <andrew@apjanke.net>
- Date
Message
termsupport: avoid repeated dir in window title in Terminal.app
Diff
1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
2index e1c2e2f93a3b376a02180d21cdddf01f0bcdcb29..ecca516f233b52ae924b1aba0c4e5e4f43064347 100644
3--- a/lib/termsupport.zsh
4+++ b/lib/termsupport.zsh
5@@ -23,6 +23,10 @@ function title {
6
7 ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
8 ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
9+# Avoid duplication of directory in terminals with independent dir display
10+if [[ $TERM_PROGRAM == Apple_Terminal ]]; then
11+ ZSH_THEME_TERM_TITLE_IDLE="%n@%m"
12+fi
13
14 # Runs before showing the prompt
15 function omz_termsupport_precmd {