Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto enable completion #346

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: auto enable completion for bash
Signed-off-by: Wenxuan Zhang <wenxuangm@gmail.com>
wfxr committed Feb 6, 2024
commit 56e31518707afd4ca9855e4a13e4de3b07f5ad58
3 changes: 0 additions & 3 deletions completions/git-forgit.bash
Original file line number Diff line number Diff line change
@@ -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()
{
2 changes: 2 additions & 0 deletions forgit.plugin.zsh
Original file line number Diff line number Diff line change
@@ -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