From 77c0b3a724d6cc4b062f0b1a327044b89c2d1f6a Mon Sep 17 00:00:00 2001 From: Gregory Hugaerts Date: Sun, 27 Jan 2013 15:17:10 +0100 Subject: [PATCH] load prezto functions on plugin load --- antigen.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/antigen.zsh b/antigen.zsh index 189f0cd..eb2ae56 100644 --- a/antigen.zsh +++ b/antigen.zsh @@ -273,8 +273,9 @@ antigen-revert () { source "$location/$script_loc" elif [[ -f $location/init.zsh ]]; then - # If we have a `init.zsh`, source it. - source "$location/init.zsh" + # If we have a `init.zsh`, pmodload the module. + local module="$(echo $loc|sed -e 's/^modules\///')" #remove modules/ from loc to find module name + pmodload "$module" elif ls "$location" | grep -qm1 '\.zsh$'; then # If there is no `*.plugin.zsh` file, source *all* the `*.zsh` -- 2.0.0