summaryrefslogtreecommitdiff
path: root/xterms.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'xterms.zsh')
-rw-r--r--xterms.zsh16
1 files changed, 16 insertions, 0 deletions
diff --git a/xterms.zsh b/xterms.zsh
new file mode 100644
index 000000000..17c6a104b
--- /dev/null
+++ b/xterms.zsh
@@ -0,0 +1,16 @@
+# 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 \ No newline at end of file