From 2869579675baea89dcaa1e5c6255d63ceb196b27 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Fri, 4 Jan 2013 08:38:55 +0900 Subject: [PATCH] Fix `*.plugin.zsh` file loading. --- antigen.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index e6eb2e0..7dcbf86 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -241,9 +241,9 @@ antigen-revert () { # implementation once tests are ready. local script_loc="$(ls "$location" | grep -m1 '\.plugin\.zsh$')" - if [[ -f $script_loc ]]; then + if [[ -f $location/$script_loc ]]; then # If we have a `*.plugin.zsh`, source it. - source "$script_loc" + source "$location/$script_loc" elif [[ ! -z "$(ls "$location" | grep -m1 '\.zsh$')" ]]; then # If there is no `*.plugin.zsh` file, source *all* the `*.zsh` -- 2.0.0