Merge pull request #1068 from knope/patch-1

ssh doesn't care about case
This commit is contained in:
Nils Winkler
2017-10-26 08:14:26 +02:00
committed by GitHub

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