We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d128d70 commit 812e2acCopy full SHA for 812e2ac
bash_completion
@@ -1752,7 +1752,7 @@ _known_hosts_real()
1752
local -a hosts=($(command sed -ne 's/^[[:blank:]]*[Hh][Oo][Ss][Tt][[:blank:]]\(.*\)$/\1/p' "${config[@]}"))
1753
if ((${#hosts[@]} != 0)); then
1754
COMPREPLY+=($(compgen -P "$prefix" \
1755
- -S "$suffix" -W '${hosts[@]%%[*?%]*}' -- "$cur"))
+ -S "$suffix" -W '${hosts[@]%%[*?%]*}' -X '\!*' -- "$cur"))
1756
fi
1757
1758
test/fixtures/_known_hosts_real/config
@@ -4,4 +4,4 @@
4
Host gee* jar?this-part-we-do-not-complete-at-least-yet
5
HostName %h.example.com
6
# Indented
7
- Host hus%%eth0 #not-a-comment
+ Host hus%%eth0 !negated #not-a-comment
0 commit comments