aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/behavior.zsh13
1 files changed, 1 insertions, 12 deletions
diff --git a/zsh/behavior.zsh b/zsh/behavior.zsh
index 9d239ad..82f31f1 100644
--- a/zsh/behavior.zsh
+++ b/zsh/behavior.zsh
@@ -23,7 +23,7 @@ setopt hist_verify # load hist into command buffer rather than exec immediately
# set term title appropriately based on term type
# user@host:current_dir (current_command)
case "$TERM" in
- xterm*|rxvt*)
+ xterm*|rxvt*|screen*)
term_preexec () {
print -Pn "\e]0;%n@%m:%~ ($1)\a" # xterm
}
@@ -31,17 +31,6 @@ case "$TERM" in
print -Pn "\e]0;%n@%m:%~\a" # xterm
}
;;
- screen*)
- term_preexec () {
- local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
- echo -ne "\ek$CMD\e\\"
- print -Pn "\e]0;%n@%m:%~ ($1)\a" # xterm
- }
- term_precmd () {
- echo -ne "\ekzsh\e\\"
- print -Pn "\e]0;%n@%m:%~\a" # xterm
- }
- ;;
esac
#