|
|
@ -16,11 +16,15 @@ ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~" |
|
|
|
|
|
|
|
|
|
|
|
#Appears when you have the prompt |
|
|
|
#Appears when you have the prompt |
|
|
|
function precmd { |
|
|
|
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 |
|
|
|
#Appears at the beginning of (and during) of command execution |
|
|
|
function preexec { |
|
|
|
function preexec { |
|
|
|
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd |
|
|
|
if [ "$DISABLE_AUTO_TITLE" != "true" ]; then |
|
|
|
title "$CMD" "%100>...>$2%<<" |
|
|
|
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd |
|
|
|
|
|
|
|
title "$CMD" "%100>...>$2%<<" |
|
|
|
|
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|