diff options
author | Johann Visagie <johann@visagie.za.net> | 2013-11-22 14:59:04 +0100 |
---|---|---|
committer | Johann Visagie <johann@visagie.za.net> | 2013-11-22 14:59:04 +0100 |
commit | d12113a9e89fed866db625f7e110fb62333b2746 (patch) | |
tree | 83957c7161232445d544534f7daff87eaf025538 /plugins/terminalapp/terminalapp.plugin.zsh | |
parent | 9f5a895192b7d6b75ba717ef4e2c9b6ed7977c68 (diff) | |
download | zsh-d12113a9e89fed866db625f7e110fb62333b2746.tar.gz zsh-d12113a9e89fed866db625f7e110fb62333b2746.tar.bz2 zsh-d12113a9e89fed866db625f7e110fb62333b2746.zip |
Use precmd hook for updating OS X proxy icon
Using the chpwd hook function causes some junk to be printed to STDOUT after
returning from a subshell wherein the working directory was changed. In rare
cases, this can cause issues with 3rd party tools. An example is this issue
with the Python virtualenvwrapper tool:
https://bitbucket.org/dhellmann/virtualenvwrapper/issue/216/lsvirtualenv-and-workon-output-broken-in
Diffstat (limited to 'plugins/terminalapp/terminalapp.plugin.zsh')
-rw-r--r-- | plugins/terminalapp/terminalapp.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/terminalapp/terminalapp.plugin.zsh b/plugins/terminalapp/terminalapp.plugin.zsh index 2249b1e2f..6e47ee188 100644 --- a/plugins/terminalapp/terminalapp.plugin.zsh +++ b/plugins/terminalapp/terminalapp.plugin.zsh @@ -32,7 +32,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then # Register the function so it is called whenever the working # directory changes. autoload add-zsh-hook - add-zsh-hook chpwd update_terminal_cwd + add-zsh-hook precmd update_terminal_cwd # Tell the terminal about the initial directory. update_terminal_cwd |