diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-11-03 15:26:12 -0500 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2015-11-27 17:12:09 +0100 |
commit | 2205aa42aa5ae4273d05cdbfe587c432d3b2aed1 (patch) | |
tree | 89c48f26b9fd46575d282678b0e5d410b3f05152 | |
parent | e44aa50301cbdb9c713193263e6c0c5a9a5798c0 (diff) | |
download | zsh-2205aa42aa5ae4273d05cdbfe587c432d3b2aed1.tar.gz zsh-2205aa42aa5ae4273d05cdbfe587c432d3b2aed1.tar.bz2 zsh-2205aa42aa5ae4273d05cdbfe587c432d3b2aed1.zip |
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.
-rw-r--r-- | plugins/z/z.plugin.zsh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/z/z.plugin.zsh b/plugins/z/z.plugin.zsh index 196b88b12..96abee890 100644 --- a/plugins/z/z.plugin.zsh +++ b/plugins/z/z.plugin.zsh @@ -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" |