diff options
Diffstat (limited to 'completions/mc')
-rw-r--r-- | completions/mc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/completions/mc b/completions/mc index dc322a15..8e96dd97 100644 --- a/completions/mc +++ b/completions/mc @@ -6,16 +6,11 @@ _mc() _init_completion -s || return case $prev in - -e|--edit|-v|--view|-l|--ftplog|-P|--printwd) + --edit|--view|--ftplog|--printwd|-!(-*)[evlP]) _filedir return ;; - -C|--colors|-D|--debuglevel) - # argument required but no completions available - return - ;; - -h|--help|--help-*|-V|--version) - # all other arguments are noop with these + --help|--help-*|--version|--colors|--debuglevel|-!(-*)[hVCD]) return ;; esac @@ -23,8 +18,7 @@ _mc() $split && return if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help-all )' \ - -- "$cur" ) ) + COMPREPLY=( $(compgen -W '$(_parse_help "$1" --help-all)' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace else _filedir -d |