Permalink
Browse files

_known_hosts_real: Document -a better

  • Loading branch information...
scop committed Nov 7, 2017
1 parent cc6667e commit 693282caaa206676fc4d1d17713877d630b07d65
Showing with 2 additions and 2 deletions.
  1. +2 −2 bash_completion
View
@@ -1490,7 +1490,7 @@ _included_ssh_config_files()
# 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
# Options: -a Use aliases from ssh config files
# -c Use `:' suffix
# -F configfile Use `configfile' for configuration settings
# -p PREFIX Use PREFIX
@@ -1622,7 +1622,7 @@ _known_hosts_real()
done
fi
# append any available aliases from config files
# append any available aliases from ssh config files
if [[ ${#config[@]} -gt 0 && -n "$aliases" ]]; then
local hosts=$( command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]]\{1,\}\([^#*?%]*\)\(#.*\)\{0,1\}$/\1/p' "${config[@]}" )
COMPREPLY+=( $( compgen -P "$prefix$user" \

0 comments on commit 693282c

Please sign in to comment.