diff options
Diffstat (limited to 'completions/k3b')
-rw-r--r-- | completions/k3b | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/k3b b/completions/k3b index b52e6de0..87d26cdc 100644 --- a/completions/k3b +++ b/completions/k3b @@ -6,23 +6,23 @@ _k3b() _init_completion || return case $prev in - --help*|--author|-v|--version|--license|--lang) + --help* | --author | -v | --version | --license | --lang) return ;; - --datacd|--audiocd|--videocd|--mixedcd|--emovixcd|--videodvd) + --datacd | --audiocd | --videocd | --mixedcd | --emovixcd | --videodvd) _filedir return ;; - --copydvd|--formatdvd|--videodvdrip) + --copydvd | --formatdvd | --videodvdrip) _dvd_devices return ;; - --copycd|--erasecd|--cddarip|--videocdrip) + --copycd | --erasecd | --cddarip | --videocdrip) _cd_devices _dvd_devices return ;; - --cdimage|--image) + --cdimage | --image) _filedir '@(cue|iso|toc)' return ;; @@ -31,18 +31,18 @@ _k3b() return ;; --ao) - COMPREPLY=( $(compgen -W 'alsa arts' -- "$cur") ) + COMPREPLY=($(compgen -W 'alsa arts' -- "$cur")) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W "$(_parse_help "$1")" -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W "$(_parse_help "$1")" -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace else _filedir fi } && -complete -F _k3b k3b + complete -F _k3b k3b # ex: filetype=sh |