Skip to content

Commit

Permalink
Fix plugin not loaded bug (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishrb authored Mar 16, 2023
1 parent ca9e52d commit 2de9295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zap.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function plug() {
[[ -e "$plugin_dir/${plugin_name#zsh-}$ext" ]] && source "$plugin_dir/${plugin_name#zsh-}$ext" && return 0
# If the plugin file has a different name than $plugin_name
plugin_filename=$(command ls $plugin_dir | grep $ext)
[[ -n $plugin_filename ]] && [[ $(echo $plugin_filename | wc -l) == 1 ]] && source "$plugin_dir/$plugin_filename" && return 0
[[ -n $plugin_filename ]] && [[ $(echo $plugin_filename | wc -l) -eq 1 ]] && source "$plugin_dir/$plugin_filename" && return 0
done
}

Expand Down

0 comments on commit 2de9295

Please sign in to comment.