From ee28db27fca924501bef66ef8d23d955743775d2 Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Wed, 6 Oct 2010 18:24:00 -0400 Subject: [PATCH] Remove terminal title junk. --- lib/functions.zsh | 27 +++++---------------------- lib/termsupport.zsh | 21 --------------------- 2 files changed, 5 insertions(+), 43 deletions(-) delete mode 100644 lib/termsupport.zsh diff --git a/lib/functions.zsh b/lib/functions.zsh index 96f7e26a7..558955b23 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -1,25 +1,8 @@ -## fixme, i duplicated this in xterms - oops -function title { - if [[ $TERM == "screen" ]]; then - # Use these two for GNU Screen: - print -nR $'\033k'$1$'\033'\\\ - - print -nR $'\033]0;'$2$'\a' - elif [[ $TERM == "xterm" || $TERM == "rxvt" ]]; then - # Use this one instead for XTerms: - print -nR $'\033]0;'$*$'\a' - fi -} - -function precmd { - title zsh "$PWD" -} - -function preexec { - emulate -L zsh - local -a cmd; cmd=(${(z)1}) - title $cmd[1]:t "$cmd[2,-1]" -} +#function preexec { + #emulate -L zsh + #local -a cmd; cmd=(${(z)1}) + #title $cmd[1]:t "$cmd[2,-1]" +#} function zsh_stats() { history | awk '{print $2}' | sort | uniq -c | sort -rn | head diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh deleted file mode 100644 index fef978748..000000000 --- a/lib/termsupport.zsh +++ /dev/null @@ -1,21 +0,0 @@ -case "$TERM" in - xterm*|rxvt*) - preexec () { - print -Pn "\e]0;%n@%m: $1\a" # xterm - } - precmd () { - print -Pn "\e]0;%n@%m: %~\a" # xterm - } - ;; - screen*) - preexec () { - local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} - echo -ne "\ek$CMD\e\\" - print -Pn "\e]0;%n@%m: $1\a" # xterm - } - precmd () { - echo -ne "\ekzsh\e\\" - print -Pn "\e]0;%n@%m: %~\a" # xterm - } - ;; -esac \ No newline at end of file