From 404fee6cb1982cebaa0d9ff925127820c642fc82 Mon Sep 17 00:00:00 2001 From: James Cox Date: Tue, 22 Sep 2009 23:01:55 +0100 Subject: [PATCH] add in xterms / title hacks --- xterms.zsh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 xterms.zsh diff --git a/xterms.zsh b/xterms.zsh new file mode 100644 index 0000000..17c6a10 --- /dev/null +++ b/xterms.zsh @@ -0,0 +1,16 @@ +# Specific to xterms, such as OS X terminal + +if [[ "${TERM}" == xterm* ]]; then + unset TMOUT + + precmd () { + print -Pn "\033]0;%n@%m %~\007" + #print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this + } + + preexec () { + print -Pn "\033]0;%n@%m <$1> %~\007" + #print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this + } + +fi \ No newline at end of file