diff options
Diffstat (limited to 'completions/pwd')
-rw-r--r-- | completions/pwd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/pwd b/completions/pwd index 56100173..b9c4fbc0 100644 --- a/completions/pwd +++ b/completions/pwd @@ -6,15 +6,15 @@ _pwd() _init_completion || return case $prev in - --help|--version) + --help | --version) return ;; esac - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY ]] || \ - COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") ) + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} ]] || + COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur")) } && -complete -F _pwd pwd + complete -F _pwd pwd # ex: filetype=sh |