1 if [[ "$TERM" == "linux" ]]; then
8 printf "\e]0;%s\a" "${tmp[1]}"
13 function title_precmd
{ title
"${(%):-[%n@%m] %~}" }
14 function title_preexec
{ title
"${(%):-[%n@%m]} $1" }
17 function title_precmd
{}
18 function title_preexec
{}
22 autoload
-U add-zsh-hook
23 add-zsh-hook precmd title_precmd
24 add-zsh-hook preexec title_preexec