Merge pull request #2275 from wjv/wjv
Use precmd hook instead of chpwd for updating OS X proxy icon
Diff
1diff --git a/plugins/terminalapp/terminalapp.plugin.zsh b/plugins/terminalapp/terminalapp.plugin.zsh
2index 2249b1e2f1d4485f6c88349636b9e6adda065d2a..6e47ee188db466f713b1203ae4918a8ddd6d8982 100644
3--- a/plugins/terminalapp/terminalapp.plugin.zsh
4+++ b/plugins/terminalapp/terminalapp.plugin.zsh
5@@ -32,7 +32,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
6 # Register the function so it is called whenever the working
7 # directory changes.
8 autoload add-zsh-hook
9- add-zsh-hook chpwd update_terminal_cwd
10+ add-zsh-hook precmd update_terminal_cwd
1112 # Tell the terminal about the initial directory.
13 update_terminal_cwd