diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-13 11:28:14 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-13 11:28:14 +0200 |
commit | 798bd2328eaaad06d77bfe90f32b87dd39846693 (patch) | |
tree | 528a18b8084a88549cf333cff01dbd3f6866f4e6 /bash_completion | |
parent | 359d242a495fc2072fa99b85e55650a6d6f86221 (diff) | |
download | bash-completion-798bd2328eaaad06d77bfe90f32b87dd39846693.tar.gz |
Doc and line wrapping fixes.
Diffstat (limited to 'bash_completion')
-rw-r--r-- | bash_completion | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bash_completion b/bash_completion index 790d89a1..9b298536 100644 --- a/bash_completion +++ b/bash_completion @@ -1212,8 +1212,9 @@ _known_hosts() } # _known_hosts() # Helper function for completing _known_hosts. -# This function performs host completion based on ssh's known_hosts files. -# Also hosts from HOSTFILE (compgen -A hostname) are added, unless +# This function performs host completion based on ssh's config and known_hosts +# 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. # Usage: _known_hosts_real [OPTIONS] CWORD # Options: -a Use aliases @@ -1370,10 +1371,11 @@ _known_hosts_real() done fi - # Add results of normal hostname completion, unless `COMP_KNOWN_HOSTS_WITH_HOSTFILE' - # is set to an empty value. + # Add results of normal hostname completion, unless + # `COMP_KNOWN_HOSTS_WITH_HOSTFILE' is set to an empty value. 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 __ltrim_colon_completions "$prefix$user$cur" |