From 6db53284747cee2eaebf81c11f3a4803f72e189d Mon Sep 17 00:00:00 2001 From: Matthew Winter <33818+wintermi@users.noreply.github.com> Date: Fri, 6 Jan 2023 03:10:50 +1100 Subject: [PATCH] fix: 'permission denied' error when executing: plug 'pabloariasal/zfm' (#99) --- zap.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zap.zsh b/zap.zsh index 1e54ff4..3bcc4e3 100644 --- a/zap.zsh +++ b/zap.zsh @@ -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") @@ -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