summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Janke <andrew@apjanke.net>2015-11-03 15:26:12 -0500
committerMarc Cornellà <marc.cornella@live.com>2015-11-27 17:12:09 +0100
commit2205aa42aa5ae4273d05cdbfe587c432d3b2aed1 (patch)
tree89c48f26b9fd46575d282678b0e5d410b3f05152
parente44aa50301cbdb9c713193263e6c0c5a9a5798c0 (diff)
downloadzsh-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.zsh7
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"