File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,8 @@ _ssh()
263
263
264
264
local ipvx
265
265
266
+ # Keep cases sorted the same they're in ssh's usage message
267
+ # (but do group ones with same arg completion)
266
268
case $prev in
267
269
-* b)
268
270
_ip_addresses
@@ -279,14 +281,14 @@ _ssh()
279
281
_filedir
280
282
return
281
283
;;
282
- -* i)
283
- _ssh_identityfile
284
- return
285
- ;;
286
284
-* I)
287
285
_filedir so
288
286
return
289
287
;;
288
+ -* i)
289
+ _ssh_identityfile
290
+ return
291
+ ;;
290
292
-* J)
291
293
_known_hosts_real -a ${configfile: +-F " $configfile " } -- " $cur "
292
294
return
@@ -333,7 +335,8 @@ _ssh()
333
335
COMPREPLY=($( compgen -W ' $(_parse_usage "$1")' -- " $cur " ) )
334
336
else
335
337
local args
336
- _count_args " =" " -*[bcDeLpRWEFSiIJlmOoQw]"
338
+ # Keep glob sort in sync with cases above
339
+ _count_args " =" " -*[bcDeLpRWEFSIiJlmOoQw]"
337
340
if (( args > 1 )) ; then
338
341
compopt -o filenames
339
342
COMPREPLY+=($( compgen -c -- " $cur " ) )
You can’t perform that action at this time.
0 commit comments