From 9852509ea3a30e1bb4194a4c628dfd94bde9bd12 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Tue, 15 Oct 2013 18:54:18 +0000 Subject: consolidate term config, don't rename tmux panes based on commands --- zsh/behavior.zsh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'zsh') 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 # -- cgit v1.2.3