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