2b61a2aa3a15de60503dd1e78fbee7fb8e6580a3
- Author
- James Cox <james@imaj.es>
- Committer
- James Cox <james@imaj.es>
- Date
Message
add in xterms / title hacks
Diff
1diff --git a/xterms.zsh b/xterms.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..17c6a104bb426c0d7617d3d0d4a4f7d53cae4f6a
4--- /dev/null
5+++ b/xterms.zsh
6@@ -0,0 +1,16 @@
7+# Specific to xterms, such as OS X terminal
8+
9+if [[ "${TERM}" == xterm* ]]; then
10+ unset TMOUT
11+
12+ precmd () {
13+ print -Pn "\033]0;%n@%m %~\007"
14+ #print -Pn "\033]0;%n@%m%# %~ %l %w :: %T\a" ## or use this
15+ }
16+
17+ preexec () {
18+ print -Pn "\033]0;%n@%m <$1> %~\007"
19+ #print -Pn "\033]0;%n@%m%# <$1> %~ %l %w :: %T\a" ## or use this
20+ }
21+
22+fi