| ... | ... |
@@ -16,11 +16,15 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~" |
| 16 | 16 |
|
| 17 | 17 |
#Appears when you have the prompt |
| 18 | 18 |
function precmd {
|
| 19 |
- title $ZSH_THEME_TERM_TAB_TITLE_IDLE $ZSH_THEME_TERM_TITLE_IDLE |
|
| 19 |
+ if [ "$DISABLE_AUTO_TITLE" != "true" ]; then |
|
| 20 |
+ title $ZSH_THEME_TERM_TAB_TITLE_IDLE $ZSH_THEME_TERM_TITLE_IDLE |
|
| 21 |
+ fi |
|
| 20 | 22 |
} |
| 21 | 23 |
|
| 22 | 24 |
#Appears at the beginning of (and during) of command execution |
| 23 | 25 |
function preexec {
|
| 24 |
- local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
|
|
| 25 |
- title "$CMD" "%100>...>$2%<<" |
|
| 26 |
+ if [ "$DISABLE_AUTO_TITLE" != "true" ]; then |
|
| 27 |
+ local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
|
|
| 28 |
+ title "$CMD" "%100>...>$2%<<" |
|
| 29 |
+ fi |
|
| 26 | 30 |
} |
| ... | ... |
@@ -14,6 +14,9 @@ export ZSH_THEME="robbyrussell" |
| 14 | 14 |
# Uncomment following line if you want to disable colors in ls |
| 15 | 15 |
# export DISABLE_LS_COLORS="true" |
| 16 | 16 |
|
| 17 |
+# Uncomment following line if you want to disable autosetting terminal title. |
|
| 18 |
+# export DISABLE_AUTO_TITLE="true" |
|
| 19 |
+ |
|
| 17 | 20 |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) |
| 18 | 21 |
# Example format: plugins=(rails git textmate ruby lighthouse) |
| 19 | 22 |
plugins=(git) |