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:
Andrew Janke authored and Marc Cornellà committed 2015-11-27 17:12:09 +01:00
1 parent e44aa50301
commit 2205aa42aa
1 file changed
+1 -6
+1 -6
View File
@@ -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"