From 79c87534360cfb0f70a7434eedc4e9ab8e32460a Mon Sep 17 00:00:00 2001 From: nickl- Date: Sun, 22 Jul 2012 03:19:11 +0200 Subject: [PATCH] Add bash_completion for new git-ignore switches. --- etc/bash_completion.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)" }