We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8181dab commit 0486a11Copy full SHA for 0486a11
bash_completion
@@ -1924,7 +1924,7 @@ _known_hosts_real()
1924
local -a hosts=($(command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]=]\{1,\}\(.*\)$/\1/p' "${config[@]}"))
1925
if ((${#hosts[@]} != 0)); then
1926
COMPREPLY+=($(compgen -P "$prefix" \
1927
- -S "$suffix" -W '"${hosts[@]%%[*?%]*}"' -X '\!*' -- "$cur"))
+ -S "$suffix" -W '"${hosts[@]%%[*?%]*}"' -X '@(\!*|)' -- "$cur"))
1928
fi
1929
1930
test/fixtures/_known_hosts_real/config
@@ -1,6 +1,8 @@
1
UserKnownHostsFile _known_hosts_real/known_hosts
2
3
# Unindented
4
+Host *
5
+ IPQoS none
6
Host gee* jar?this-part-we-do-not-complete-at-least-yet
7
HostName %h.example.com
8
# Indented, with = separator
0 commit comments