diff options
author | James Cox <james@imaj.es> | 2009-09-22 23:01:55 +0100 |
---|---|---|
committer | James Cox <james@imaj.es> | 2009-09-22 23:01:55 +0100 |
commit | 2b61a2aa3a15de60503dd1e78fbee7fb8e6580a3 (patch) | |
tree | f45dfc8dfcb55b430e13ab5a6d4d8f62d21278fb | |
parent | bd5826980ea549d629feff0786f151c985525c98 (diff) | |
download | zsh-2b61a2aa3a15de60503dd1e78fbee7fb8e6580a3.tar.gz zsh-2b61a2aa3a15de60503dd1e78fbee7fb8e6580a3.tar.bz2 zsh-2b61a2aa3a15de60503dd1e78fbee7fb8e6580a3.zip |
add in xterms / title hacks
-rw-r--r-- | xterms.zsh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xterms.zsh b/xterms.zsh new file mode 100644 index 000000000..17c6a104b --- /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 |