We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3039122 commit 57561fbCopy full SHA for 57561fb
bash_completion
@@ -2447,7 +2447,7 @@ _comp__included_ssh_config_files()
2447
# https://github.com/openssh/openssh-portable/blob/5ec5504f1d328d5bfa64280cd617c3efec4f78f3/readconf.c#L2240
2448
local max_depth=16
2449
while ((${#included[@]} > 0 && depth++ < max_depth)); do
2450
- _comp_split include_files "$(command sed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]\(.*\)$/\1/p' "${included[@]}")" || return
+ _comp_split include_files "$(command sed -ne 's/^[[:blank:]]*[Ii][Nn][Cc][Ll][Uu][Dd][Ee][[:blank:]]\([^#]*\).*$/\1/p' "${included[@]}")" || return
2451
included=()
2452
for i in "${include_files[@]}"; do
2453
if [[ $i != [~/]* ]]; then
0 commit comments