Skip to content

Commit

Permalink
Update ssh.completion.sh to be case-insensitive
Browse files Browse the repository at this point in the history
Also find 'host myhost' and 'HOST myhost' in ssh-config
  • Loading branch information
jornodberg authored Dec 12, 2024
1 parent 410b6c9 commit 751aa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/ssh.completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function _omb_completion_ssh {
fi
done
if ((${#config_files[@]} != 0)); then
COMPREPLY+=($(compgen -W "$(awk '/^Host/ {for (i=2; i<=NF; i++) print $i}' "${config_files[@]}")" "${options[@]}"))
COMPREPLY+=($(compgen -W "$(awk '/^[Hh][Oo][Ss][Tt] /{for (i=2; i<=NF; i++) print $i}' "${config_files[@]}")" "${options[@]}"))
fi

local -a known_hosts_files=()
Expand Down

0 comments on commit 751aa43

Please sign in to comment.