mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
z plugin: fix loading from custom location
The old implementation would attempt to load both the default and custom implementations, with the custom one coming first, so it would get clobbered by the default version.
This commit is contained in:
parent
bebcb0ef17
commit
adb79cd310
1 changed files with 1 additions and 6 deletions
|
|
@ -1,6 +1 @@
|
|||
_load_z() {
|
||||
source $1/z.sh
|
||||
}
|
||||
|
||||
[[ -f $ZSH_CUSTOM/plugins/z/z.plugin.zsh ]] && _load_z $ZSH_CUSTOM/plugins/z
|
||||
[[ -f $ZSH/plugins/z/z.plugin.zsh ]] && _load_z $ZSH/plugins/z
|
||||
source "${0:h}/z.sh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue