diff options
Diffstat (limited to '')
-rw-r--r-- | completions/locale-gen | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/locale-gen b/completions/locale-gen index 4068201..0ac8598 100644 --- a/completions/locale-gen +++ b/completions/locale-gen @@ -1,32 +1,32 @@ # locale-gen(8) completion -*- shell-script -*- -_locale_gen() +_comp_cmd_locale_gen() { - local cur prev words cword split - _init_completion -s || return + local cur prev words cword was_split comp_args + _comp_initialize -s -- "$@" || return case $prev in --help | -h) return ;; --aliases) - _filedir alias + _comp_compgen_filedir alias return ;; esac - $split && return + [[ $was_split ]] && return if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + _comp_compgen_help [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi - COMPREPLY=($(compgen -W \ - '$(awk "{ print \$1 }" /usr/share/i18n/SUPPORTED 2>/dev/null)' \ - -- "$cur")) + _comp_compgen_split -- "$( + _comp_awk '{ print $1 }' /usr/share/i18n/SUPPORTED 2>/dev/null + )" } && - complete -F _locale_gen locale-gen + complete -F _comp_cmd_locale_gen locale-gen # ex: filetype=sh |