Skip to content

Commit

Permalink
fix: 'permission denied' error when executing: plug 'pabloariasal/zfm' (
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermi authored Jan 5, 2023
1 parent 6aeeae0 commit 6db5328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zap.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rm -rf "$ZAP_DIR/installed_plugins"

_try_source() {
sourced=false
plugin_files_names=("$1/$2.plugin.zsh"
plugin_files_names=("$plugin_dir/$plugin_name.plugin.zsh"
"$plugin_dir/$plugin_name.zsh"
"$plugin_dir/$plugin_name.zsh-theme"
"$plugin_dir/${plugin_name#zsh-}.zsh")
Expand Down Expand Up @@ -43,7 +43,7 @@ plug() {
fi
echo -e "\e[1A\e[K⚡$plugin_name"
fi
_try_source $plugin_dir $plugin_name
_try_source
if [[ $sourced == false ]]; then
echo "Failed to source $full_plugin_name"
fi
Expand Down

0 comments on commit 6db5328

Please sign in to comment.