aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-01-26 00:38:26 -0700
committerkatherine <shmibs@shmibbles.me>2016-01-26 00:38:26 -0700
commit36a538aff84b36c25f9290548f64683bb25d96dc (patch)
treef66939c3f2f9665ac31ad626926ef2a3aa904992 /.zshrc
parent10718067ca38cc353163e1ba564ef716834480d2 (diff)
downloaddotfiles-36a538aff84b36c25f9290548f64683bb25d96dc.tar.gz
dynamically updating titles
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index b8a01a7..af86879 100644
--- a/.zshrc
+++ b/.zshrc
@@ -31,6 +31,19 @@ if [[ -d ~/.cabal-sandbox/bin ]]; then
PATH=$PATH:~/.cabal-sandbox/bin
fi
+# dynamic title
+if [[ "$TERM" == "rxvt-256color" ]]; then
+
+ precmd() {
+ print -Pn "\e]0;zsh: %(1j,%j job%(2j|s|); ,)%~\a"
+ }
+
+ preexec() {
+ printf "\033]0;%s\a" "$1"
+ }
+
+fi
+
#################### PROMPT ###################
PROMPT="%{%B$fg[white]%}┌["
# if non-zero, previous return val