diff options
Diffstat (limited to 'completions/hostname')
-rw-r--r-- | completions/hostname | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/hostname b/completions/hostname index 68f9b4ed..ce1b32e2 100644 --- a/completions/hostname +++ b/completions/hostname @@ -6,18 +6,18 @@ _hostname() _init_completion || return case $prev in - --help|--version|-!(-*)[hV]) + --help | --version | -!(-*)[hV]) return ;; - --file|-!(-*)F) + --file | -!(-*)F) _filedir return ;; esac - [[ $cur == -* ]] && \ - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) + [[ $cur == -* ]] && + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) } && -complete -F _hostname hostname + complete -F _hostname hostname # ex: filetype=sh |