ssh doesn't care about case
... neither should it's autocomplete, please? :Dpull/1068/head
parent
4c0e6c5adc
commit
1b6a208b4c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue