Skip to content

Commit

Permalink
style(completions/ssh): clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 9, 2024
1 parent 4dbbb28 commit 8e38234
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions completions/ssh.completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ function _omb_completion_ssh {
local cur
_omb_completion_reassemble_breaks :

local -a options
if [[ $cur == *@* ]] ; then
local -a options=(-P "${cur%%@*}@" -- "${cur#*@}")
options=(-P "${cur%%@*}@" -- "${cur#*@}")
else
local -a options=(-- "$cur")
options=(-- "$cur")
fi

local IFS=$'\n'
Expand Down

0 comments on commit 8e38234

Please sign in to comment.