From 5c4bc544d7b248e5cb086e79733000421b92d61b Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Tue, 6 Feb 2024 11:31:37 +0800 Subject: [PATCH] fix: fix lint Signed-off-by: Wenxuan Zhang --- forgit.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index c307493..8325517 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -11,6 +11,7 @@ if [[ -n "$ZSH_VERSION" ]]; then # shellcheck disable=2277,2296,2298 0="${${(M)0:#/*}:-$PWD/$0}" INSTALL_DIR="${0:h}" + # shellcheck disable=SC2206 fpath=("$INSTALL_DIR/completions" $fpath) elif [[ -n "$BASH_VERSION" ]]; then INSTALL_DIR="$(dirname -- "${BASH_SOURCE[0]}")" @@ -178,7 +179,9 @@ if [[ -z "$FORGIT_NO_ALIASES" ]]; then fi if [[ -n "$ZSH_VERSION" ]]; then + # shellcheck source=/dev/null source "$INSTALL_DIR/completions/git-forgit.zsh" elif [[ -n "$BASH_VERSION" ]]; then + # shellcheck source=/dev/null source "$INSTALL_DIR/completions/git-forgit.bash" fi