mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
16 lines
352 B
Bash
16 lines
352 B
Bash
|
# 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
|