host: Complete with known hosts.
This commit is contained in:
parent
23a049a801
commit
eb0be65d63
@ -68,7 +68,10 @@ _host()
|
|||||||
|
|
||||||
if [[ $cur == -* ]]; then
|
if [[ $cur == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_known_hosts_real "$cur"
|
||||||
} &&
|
} &&
|
||||||
complete -F _host host
|
complete -F _host host
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user