Doc and line wrapping fixes.
This commit is contained in:
parent
359d242a49
commit
798bd2328e
@ -1212,8 +1212,9 @@ _known_hosts()
|
|||||||
} # _known_hosts()
|
} # _known_hosts()
|
||||||
|
|
||||||
# Helper function for completing _known_hosts.
|
# Helper function for completing _known_hosts.
|
||||||
# This function performs host completion based on ssh's known_hosts files.
|
# This function performs host completion based on ssh's config and known_hosts
|
||||||
# Also hosts from HOSTFILE (compgen -A hostname) are added, unless
|
# files, as well as hostnames reported by avahi-browse. Also hosts from
|
||||||
|
# HOSTFILE (compgen -A hostname) are added, unless
|
||||||
# COMP_KNOWN_HOSTS_WITH_HOSTFILE is set to an empty value.
|
# COMP_KNOWN_HOSTS_WITH_HOSTFILE is set to an empty value.
|
||||||
# Usage: _known_hosts_real [OPTIONS] CWORD
|
# Usage: _known_hosts_real [OPTIONS] CWORD
|
||||||
# Options: -a Use aliases
|
# Options: -a Use aliases
|
||||||
@ -1370,10 +1371,11 @@ _known_hosts_real()
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add results of normal hostname completion, unless `COMP_KNOWN_HOSTS_WITH_HOSTFILE'
|
# Add results of normal hostname completion, unless
|
||||||
# is set to an empty value.
|
# `COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value.
|
||||||
if [ -n "${COMP_KNOWN_HOSTS_WITH_HOSTFILE-1}" ]; then
|
if [ -n "${COMP_KNOWN_HOSTS_WITH_HOSTFILE-1}" ]; then
|
||||||
COMPREPLY=( "${COMPREPLY[@]}" $( compgen -A hostname -P "$prefix$user" -S "$suffix" -- "$cur" ) )
|
COMPREPLY=( "${COMPREPLY[@]}"
|
||||||
|
$( compgen -A hostname -P "$prefix$user" -S "$suffix" -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__ltrim_colon_completions "$prefix$user$cur"
|
__ltrim_colon_completions "$prefix$user$cur"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user