From 56e31518707afd4ca9855e4a13e4de3b07f5ad58 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhang Date: Tue, 6 Feb 2024 11:25:09 +0800 Subject: [PATCH] feat: auto enable completion for bash Signed-off-by: Wenxuan Zhang --- completions/git-forgit.bash | 3 --- forgit.plugin.zsh | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/completions/git-forgit.bash b/completions/git-forgit.bash index 43d0a99..f81acd2 100755 --- a/completions/git-forgit.bash +++ b/completions/git-forgit.bash @@ -6,9 +6,6 @@ # # /usr/share/bash-completion/completions # ~/.local/share/bash-completion/completions -# -# When using forgit via the shell plugin, source this file explicitly after -# forgit.plugin.zsh to enable tab completion for shell functions and aliases. _git_branch_delete() { diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index e1b4866..c307493 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -179,4 +179,6 @@ fi if [[ -n "$ZSH_VERSION" ]]; then source "$INSTALL_DIR/completions/git-forgit.zsh" +elif [[ -n "$BASH_VERSION" ]]; then + source "$INSTALL_DIR/completions/git-forgit.bash" fi