1
0
Fork 0

Corrected __git-supp_shortmap() for newer git releases

master
Mike Gerwitz 2013-07-08 21:59:26 -04:00
parent 8633cbaf62
commit bc07473f12
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ __git-short_shortmap ()
# only perform completion when within a git dir
__gitdir >/dev/null || return $?
# populate variables used by various git completion functions
local cur words cword prev
_get_comp_words_by_ref -n =: cur words cword prev
# execute the associated completion function (column two of the shortmaps
# file)
$( awk "/^$1 / { print \$2 }" <<< "$__git_short_maps" )