diff options
author | Matt Singleton <matt@xcolour.net> | 2013-10-15 18:54:18 +0000 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2013-10-15 18:54:18 +0000 |
commit | 9852509ea3a30e1bb4194a4c628dfd94bde9bd12 (patch) | |
tree | a0f493182582d1b1be034eb22868486285d4c9f0 | |
parent | e1f6ac1fb35f873f5ca4ecf732f8dd5b1a81d612 (diff) |
consolidate term config, don't rename tmux panes based on commands
-rw-r--r-- | zsh/behavior.zsh | 13 |
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 # |