feat: auto enable completion for bash

Signed-off-by: Wenxuan Zhang <wenxuangm@gmail.com>
This commit is contained in:
Wenxuan Zhang 2024-02-06 11:25:09 +08:00
parent 17f8815635
commit 56e3151870
No known key found for this signature in database
GPG key ID: CCAF35548C65530F
2 changed files with 2 additions and 3 deletions

View file

@ -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()
{

View file

@ -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