Skip to content

Commit f0bbe1e

Browse files
committed
bundle: complete versioned bundle/bundler commands
As with gem and ruby, complete version-suffixed commands as well. The bundle and bundler commands have had a version suffix on Debian systems since at least Ruby 2.7, as seen in the [ruby2.7 file list], and is still used, as shown in the [ruby3.3 file list]. [ruby2.7 file list]: https://packages.debian.org/bullseye/amd64/ruby2.7/filelist [ruby3.3 file list]: https://packages.debian.org/sid/amd64/ruby3.3/filelist Signed-off-by: Kevin Locke <[email protected]>
1 parent b5c52b1 commit f0bbe1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

completion-bundle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,5 +250,5 @@ __bundle_exec_ruby() {
250250
}
251251

252252

253-
complete -F __bundle -o bashdefault -o default bundle bundler
253+
complete -F __bundle -o bashdefault -o default bundle bundle2.{0..7} bundle3.{0..3} bundler bundler2.{0..7} bundler3.{0..3}
254254
# vim: ai ft=sh sw=4 sts=4 et

completion-ruby-all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ else
9999
_cr_load gem gem1.{8..9} gem2.{0..7} gem3.{0..3} jgem
100100
_cr_load jruby
101101
_cr_load rails
102-
_cr_load bundle bundler
102+
_cr_load bundle bundle2.{0..7} bundle3.{0..3} bundler bundler2.{0..7} bundler3.{0..3}
103103
_cr_load rake
104104
_cr_load ruby ruby1.{8..9} ruby2.{0..7} ruby3.{0..3}
105105

0 commit comments

Comments
 (0)