mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 02:18:00 +00:00
27 lines
397 B
Plaintext
27 lines
397 B
Plaintext
#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;
|