diff options
Diffstat (limited to 'completions/locale-gen')
-rw-r--r-- | completions/locale-gen | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/locale-gen b/completions/locale-gen index 3dae76ff..40682013 100644 --- a/completions/locale-gen +++ b/completions/locale-gen @@ -6,7 +6,7 @@ _locale_gen() _init_completion -s || return case $prev in - --help|-h) + --help | -h) return ;; --aliases) @@ -18,15 +18,15 @@ _locale_gen() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi - COMPREPLY=( $(compgen -W \ + COMPREPLY=($(compgen -W \ '$(awk "{ print \$1 }" /usr/share/i18n/SUPPORTED 2>/dev/null)' \ - -- "$cur") ) + -- "$cur")) } && -complete -F _locale_gen locale-gen + complete -F _locale_gen locale-gen # ex: filetype=sh |