+if [[ "$TERM" == "linux" ]]; then
+ return
+fi
+
function title {
local tmp
tmp=(${(f)*})
case "$TERM" in
(*xterm*|rxvt*)
function title_precmd { title "${(%):-[%n@%m] %~}" }
- function title_preexec { title "$1" }
+ function title_preexec { title "${(%):-[%n@%m]} $1" }
;;
(*)
function title_precmd {}