summaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-10-30 13:59:09 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-10-30 13:59:10 +0100
commit4595adbc3de01228bb122575264d9385f6cbd9b4 (patch)
tree76ebfb867647e4f12129ca13c74fa84146c59f30 /.zsh
parent4fabf754a0c771c85bf3f1a213a89a82ce9e6ec9 (diff)
downloaddotfiles-4595adbc3de01228bb122575264d9385f6cbd9b4.tar.gz
dotfiles-4595adbc3de01228bb122575264d9385f6cbd9b4.tar.bz2
dotfiles-4595adbc3de01228bb122575264d9385f6cbd9b4.zip
Set terminal title not only on path change, but for each new prompt.
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zsh/zshrc b/.zsh/zshrc
index 87a5876..5b99edf 100644
--- a/.zsh/zshrc
+++ b/.zsh/zshrc
@@ -206,7 +206,8 @@ _set_cwd () {
echo -ne "$update"
}
-chpwd_functions=( ${chpwd_functions} _set_title _set_cwd )
+precmd_functions=( ${precmd_functions} _set_title )
+chpwd_functions=( ${chpwd_functions} _set_cwd )
case $TERM in
xterm*)
@@ -216,7 +217,6 @@ xterm*)
esac
# exec once for initialization
-_set_title
_set_cwd
# }}}