diff --git a/etc/bash_completion.sh b/etc/bash_completion.sh index adff45f..e37fa74 100644 --- a/etc/bash_completion.sh +++ b/etc/bash_completion.sh @@ -32,6 +32,19 @@ _git_graft(){ __gitcomp "$(__git_heads)" } +_git_ignore(){ + case "$cur" in + --*) + __gitcomp "--global --local" + return + ;; + -*) + __gitcomp "--global --local -g -l" + return + ;; + esac +} + _git_squash(){ __gitcomp "$(__git_heads)" }