From b5129a8aafa582466f79cdbe4c4fbfae7c316f4b Mon Sep 17 00:00:00 2001 From: LFDM <1986gh@gmail.com> Date: Tue, 7 Jan 2014 17:47:37 +0100 Subject: [PATCH] Using a zsh idiom to obtain the plugin dir path. --- oh-my-zsh.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh index 373cc330b..6287c8e96 100644 --- a/oh-my-zsh.zsh +++ b/oh-my-zsh.zsh @@ -43,8 +43,8 @@ initialize_completions() { # Save the location of the current completion dump file. ZSH_COMPDUMP=${ZDOTDIR:-${HOME}}/.zcompdump-$short_host-$ZSH_VERSION - # plugins need to be added to the functions path before compinit - for plugin in $ZSH_PLUGIN_PATHS; { fpath=($(dirname $plugin) $fpath) } + # the plugin directories need to be added to the functions path before compinit + for plugin in $ZSH_PLUGIN_PATHS; { fpath=(${plugin:h} $fpath) } autoload -U compinit compinit -i -d $ZSH_COMPDUMP