From 2205aa42aa5ae4273d05cdbfe587c432d3b2aed1 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Tue, 3 Nov 2015 15:26:12 -0500 Subject: [PATCH] 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. --- plugins/z/z.plugin.zsh | 7 +------ 1 file changed, 1 insertion(+), 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"