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