1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-24 01:26:48 +00:00
prezto/modules/git/functions/_git-ignore-template

27 lines
397 B
Plaintext
Raw Permalink Normal View History

#compdef _gitignireio git-ignore-template
#autoload
#
# Completes git-ignore-template
#
# Authors:
# Haojia Che <haojia.che@gmail.com>
#
typeset -A opt_args
_arguments -C \
'1::ignore:->ignores' \
&& ret=0
list=(`git-ignore-template`)
case "$state" in
(ignores)
languages=(`echo $list| tr "," "\n"`)
_describe 'templates' languages && ret=0
;;
esac;
return 1;