From 048a43e5cd25c221e96554fd71b812b62b9cf4c0 Mon Sep 17 00:00:00 2001 From: Marco <82162277+mamaraddio@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:49:24 +0200 Subject: [PATCH] fix: fix two lines - put back in place the `fpath` line - fixed original functionality allowing the plugin `initfile` to have a different name from the plugin repository --- zap.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zap.zsh b/zap.zsh index 7909d8a..fd38e03 100644 --- a/zap.zsh +++ b/zap.zsh @@ -4,6 +4,7 @@ export ZSHRC="${ZDOTDIR:-$HOME}/.zshrc" export ZAP_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/zap" export ZAP_PLUGIN_DIR="$ZAP_DIR/plugins" export -a ZAP_INSTALLED_PLUGINS=() +fpath+="$ZAP_DIR/completion" function plug() { @@ -20,6 +21,7 @@ function plug() { # Use the specified plugin_name local -a initfiles=( $plugin_dir/${plugin_name}.{plugin.,}{z,}sh{-theme,}(N) + $plugin_dir/*.{plugin.,}{z,}sh{-theme,}(N) ) (( $#initfiles )) && source $initfiles[1] fi