Skip to content

Commit

Permalink
style(completions/ssh.completion): normalize quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga authored May 9, 2024
1 parent a26c5b0 commit afa087f
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 @@ -34,7 +34,7 @@ function _omb_completion_ssh {
local include_file
for include_file in "${include_files[@]}";do
# parse all defined hosts from that file
[[ -s "$include_file" ]] && config_files+=("$include_file")
[[ -s $include_file ]] && config_files+=("$include_file")
done

COMPREPLY+=($(compgen -W "$(awk '/^Host/ {for (i=2; i<=NF; i++) print $i}' "${config_files[@]}")" "${options[@]}"))
Expand Down

0 comments on commit afa087f

Please sign in to comment.