Skip to content

Commit

Permalink
Fix copy/paste error - should be +=
Browse files Browse the repository at this point in the history
  • Loading branch information
plasmastorm committed May 8, 2024
1 parent b77845e commit 1645fc3
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 @@ -27,7 +27,7 @@ function _omb_completion_ssh {

# parse all defined hosts from /etc/ssh/ssh_config
if [[ -r /etc/ssh/ssh_config ]]; then
COMPREPLY=($(compgen -W "$(grep ^Host "/etc/ssh/ssh_config" | awk '{for (i=2; i<=NF; i++) print $i}' )" "${options[@]}"))
COMPREPLY+=($(compgen -W "$(grep ^Host "/etc/ssh/ssh_config" | awk '{for (i=2; i<=NF; i++) print $i}' )" "${options[@]}"))
fi

# parse all hosts found in /etc/ssh/ssh_known_hosts
Expand Down

0 comments on commit 1645fc3

Please sign in to comment.