Commit 687012615d40c96d482b1c3b8ef7d5aa8529e79f
Merge pull request #35 from kamipo/master
Fix `*.plugin.zsh` file loading.
Showing 1 changed file Side-by-side Diff
antigen.zsh
... | ... | @@ -241,9 +241,9 @@ antigen-revert () { |
241 | 241 | # implementation once tests are ready. |
242 | 242 | local script_loc="$(ls "$location" | grep -m1 '\.plugin\.zsh$')" |
243 | 243 | |
244 | - if [[ -f $script_loc ]]; then | |
244 | + if [[ -f $location/$script_loc ]]; then | |
245 | 245 | # If we have a `*.plugin.zsh`, source it. |
246 | - source "$script_loc" | |
246 | + source "$location/$script_loc" | |
247 | 247 | |
248 | 248 | elif [[ ! -z "$(ls "$location" | grep -m1 '\.zsh$')" ]]; then |
249 | 249 | # If there is no `*.plugin.zsh` file, source *all* the `*.zsh` |