xterms.zsh 352 B

12345678910111213141516
  1. # Specific to xterms, such as OS X terminal
  2. if [[ "${TERM}" == xterm* ]]; then
  3. unset TMOUT
  4. precmd () {
  5. print -Pn "\033]0;%n@%m %~\007"
  6. #print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this
  7. }
  8. preexec () {
  9. print -Pn "\033]0;%n@%m <$1> %~\007"
  10. #print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this
  11. }
  12. fi