Skip to content

Commit c32358b

Browse files
committed
feat(ssh): add -B arg completion
1 parent bbd773b commit c32358b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

completions/ssh

+5-1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ _ssh()
266266
# Keep cases sorted the same they're in ssh's usage message
267267
# (but do group ones with same arg completion)
268268
case $prev in
269+
-*B)
270+
_available_interfaces -a
271+
return
272+
;;
269273
-*b)
270274
_ip_addresses
271275
return
@@ -336,7 +340,7 @@ _ssh()
336340
else
337341
local args
338342
# Keep glob sort in sync with cases above
339-
_count_args "=" "-*[bcDeLpRWEFSIiJlmOoQw]"
343+
_count_args "=" "-*[BbcDeLpRWEFSIiJlmOoQw]"
340344
if ((args > 1)); then
341345
compopt -o filenames
342346
COMPREPLY+=($(compgen -c -- "$cur"))

0 commit comments

Comments
 (0)