1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 12:48:01 +00:00

add in xterms / title hacks

This commit is contained in:
James Cox 2009-09-22 23:01:55 +01:00
parent be7207b9bc
commit 404fee6cb1

16
xterms.zsh Normal file
View File

@ -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