From 4595adbc3de01228bb122575264d9385f6cbd9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 30 Oct 2013 13:59:09 +0100 Subject: Set terminal title not only on path change, but for each new prompt. --- .zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.zsh') 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 # }}} -- cgit v1.2.3