This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/xterms.zsh

16 lines
352 B
Bash
Raw Normal View History

2009-09-22 18:01:55 -04:00
# 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