Commit 77c0b3a724d6cc4b062f0b1a327044b89c2d1f6a
1 parent
65520d3c6c
load prezto functions on plugin load
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
antigen.zsh
| ... | ... | @@ -273,8 +273,9 @@ antigen-revert () { |
| 273 | 273 | source "$location/$script_loc" |
| 274 | 274 | |
| 275 | 275 | elif [[ -f $location/init.zsh ]]; then |
| 276 | - # If we have a `init.zsh`, source it. | |
| 277 | - source "$location/init.zsh" | |
| 276 | + # If we have a `init.zsh`, pmodload the module. | |
| 277 | + local module="$(echo $loc|sed -e 's/^modules\///')" #remove modules/ from loc to find module name | |
| 278 | + pmodload "$module" | |
| 278 | 279 | |
| 279 | 280 | elif ls "$location" | grep -qm1 '\.zsh$'; then |
| 280 | 281 | # If there is no `*.plugin.zsh` file, source *all* the `*.zsh` |