mirror of
https://github.com/Hopiu/zoxide.git
synced 2026-05-21 21:41:55 +00:00
fix(zsh): append _zoxide_precmd as a single-element array to hook (#10)
We should append `_zoxide_precmd` to `precmd_functions` within an array literal, not by itself.
This commit is contained in:
parent
5a6f077ab6
commit
f9f1db8f30
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ _zoxide_precmd() {
|
|||
}
|
||||
|
||||
[[ -n "${precmd_functions[(r)_zoxide_precmd]}" ]] || {
|
||||
precmd_functions+=_zoxide_precmd
|
||||
precmd_functions+=(_zoxide_precmd)
|
||||
}
|
||||
|
||||
z() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue