2205aa42aa5ae4273d05cdbfe587c432d3b2aed1

Author
Andrew Janke <andrew@apjanke.net>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

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.

Diff

 1diff --git a/plugins/z/z.plugin.zsh b/plugins/z/z.plugin.zsh
 2index 196b88b12d4204bc523ce18c80c374e216ae49ef..96abee890f9ed2fa2666a709cb8f33b8322c369d 100644
 3--- a/plugins/z/z.plugin.zsh
 4+++ b/plugins/z/z.plugin.zsh
 5@@ -1,6 +1 @@
 6-_load_z() {
 7-  source $1/z.sh
 8-}
 9-
10-[[ -f $ZSH_CUSTOM/plugins/z/z.plugin.zsh ]] && _load_z $ZSH_CUSTOM/plugins/z
11-[[ -f $ZSH/plugins/z/z.plugin.zsh ]] && _load_z $ZSH/plugins/z
12+source "${0:h}/z.sh"