diff options
author | Robby Russell <robby@planetargon.com> | 2011-04-03 11:00:38 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-04-03 11:00:38 -0700 |
commit | 05fc020a081846245a5a4a26d190652cb8cf9add (patch) | |
tree | db090354508d82e0b7a554ea39932306013cd7a1 /lib | |
parent | 2497c57976b1e5002ebecd7ffa5c35bc87ada903 (diff) | |
parent | 06063ab695ecfe6fa7737511a070b24412ee1b2a (diff) | |
download | zsh-05fc020a081846245a5a4a26d190652cb8cf9add.tar.gz zsh-05fc020a081846245a5a4a26d190652cb8cf9add.tar.bz2 zsh-05fc020a081846245a5a4a26d190652cb8cf9add.zip |
Merge branch 'disable_auto-title' of https://github.com/lorrin/oh-my-zsh into lorrin-disable_auto-title
Diffstat (limited to 'lib')
-rw-r--r-- | lib/termsupport.zsh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index e1e536690..b250833ed 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -16,11 +16,15 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~" #Appears when you have the prompt function precmd { - title $ZSH_THEME_TERM_TAB_TITLE_IDLE $ZSH_THEME_TERM_TITLE_IDLE + if [ "$DISABLE_AUTO_TITLE" != "true" ]; then + title $ZSH_THEME_TERM_TAB_TITLE_IDLE $ZSH_THEME_TERM_TITLE_IDLE + fi } #Appears at the beginning of (and during) of command execution function preexec { - local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd - title "$CMD" "%100>...>$2%<<" + if [ "$DISABLE_AUTO_TITLE" != "true" ]; then + local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd + title "$CMD" "%100>...>$2%<<" + fi } |