Merge pull request #1068 from knope/patch-1

ssh doesn't care about case
pull/1070/head
Nils Winkler 2017-10-26 08:14:26 +02:00 committed by GitHub
commit 2405fe2c54
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ _sshcomplete() {
# parse all defined hosts from .ssh/config
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
# parse all hosts found in .ssh/known_hosts