aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2013-10-15 18:54:18 +0000
committerMatt Singleton <matt@xcolour.net>2013-10-15 18:54:18 +0000
commit9852509ea3a30e1bb4194a4c628dfd94bde9bd12 (patch)
treea0f493182582d1b1be034eb22868486285d4c9f0
parente1f6ac1fb35f873f5ca4ecf732f8dd5b1a81d612 (diff)
consolidate term config, don't rename tmux panes based on commands
-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
#