mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
Merge pull request #2275 from wjv/wjv
Use precmd hook instead of chpwd for updating OS X proxy icon
This commit is contained in:
commit
f078e03743
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
|
||||||
# Register the function so it is called whenever the working
|
# Register the function so it is called whenever the working
|
||||||
# directory changes.
|
# directory changes.
|
||||||
autoload add-zsh-hook
|
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.
|
# Tell the terminal about the initial directory.
|
||||||
update_terminal_cwd
|
update_terminal_cwd
|
||||||
|
|
Loading…
Reference in a new issue