ssh doesn't care about case

... neither should it's autocomplete,
  please?  

  :D
pull/1068/head
knope 2017-10-25 14:01:04 -04:00 committed by GitHub
parent 4c0e6c5adc
commit 1b6a208b4c
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ _sshcomplete() {
# parse all defined hosts from .ssh/config # parse all defined hosts from .ssh/config
if [ -r "$HOME/.ssh/config" ]; then if [ -r "$HOME/.ssh/config" ]; then
COMPREPLY=($(compgen -W "$(grep ^Host "$HOME/.ssh/config" | awk '{for (i=2; i<=NF; i++) print $i}' )" ${OPTIONS}) ) COMPREPLY=($(compgen -W "$(grep -i ^Host "$HOME/.ssh/config" | awk '{for (i=2; i<=NF; i++) print $i}' )" ${OPTIONS}) )
fi fi
# parse all hosts found in .ssh/known_hosts # parse all hosts found in .ssh/known_hosts