From 4725056632eb75f1021fb67cdfb52c4b077608d4 Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sun, 2 Jun 2024 13:15:45 -0600 Subject: [PATCH 1/4] gem: complete gem3.0 through gem3.3 Signed-off-by: Kevin Locke --- completion-gem | 2 +- completion-ruby-all | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/completion-gem b/completion-gem index 09c2928..e8dd330 100644 --- a/completion-gem +++ b/completion-gem @@ -137,5 +137,5 @@ __gem_command_options() { end' 2>/dev/null } -complete -F __gem -o bashdefault -o default gem gem1.{8..9} gem2.{0..7} jgem +complete -F __gem -o bashdefault -o default gem gem1.{8..9} gem2.{0..7} gem3.{0..3} jgem # vim: ai ft=sh sw=4 sts=4 et diff --git a/completion-ruby-all b/completion-ruby-all index 42d3200..b5fcf2a 100644 --- a/completion-ruby-all +++ b/completion-ruby-all @@ -96,7 +96,7 @@ else } fi - _cr_load gem gem1.{8..9} gem2.{0..7} jgem + _cr_load gem gem1.{8..9} gem2.{0..7} gem3.{0..3} jgem _cr_load jruby _cr_load rails _cr_load bundle bundler From b5c52b1572c77dde67de85d16ebdb98e4fd64ecf Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sun, 2 Jun 2024 13:16:13 -0600 Subject: [PATCH 2/4] ruby: complete ruby3.0 through ruby3.3 Signed-off-by: Kevin Locke --- completion-ruby | 2 +- completion-ruby-all | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/completion-ruby b/completion-ruby index bc44a85..0984904 100644 --- a/completion-ruby +++ b/completion-ruby @@ -73,5 +73,5 @@ __ruby() { fi } -complete -F __ruby -o filenames -o bashdefault -o default ruby ruby1.{8..9} ruby2.{0..7} +complete -F __ruby -o filenames -o bashdefault -o default ruby ruby1.{8..9} ruby2.{0..7} ruby3.{0..3} # vim: ai ft=sh sw=4 sts=4 et diff --git a/completion-ruby-all b/completion-ruby-all index b5fcf2a..27cdcee 100644 --- a/completion-ruby-all +++ b/completion-ruby-all @@ -101,7 +101,7 @@ else _cr_load rails _cr_load bundle bundler _cr_load rake - _cr_load ruby ruby1.{8..9} ruby2.{0..7} + _cr_load ruby ruby1.{8..9} ruby2.{0..7} ruby3.{0..3} unset -f _cr_load _cr_anycmd unset -v _CR_PATH From f0bbe1e62abf5358208002c089a768ae63efa24e Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sun, 2 Jun 2024 13:19:37 -0600 Subject: [PATCH 3/4] 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 --- completion-bundle | 2 +- completion-ruby-all | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/completion-bundle b/completion-bundle index 81c572a..03b8299 100644 --- a/completion-bundle +++ b/completion-bundle @@ -250,5 +250,5 @@ __bundle_exec_ruby() { } -complete -F __bundle -o bashdefault -o default bundle bundler +complete -F __bundle -o bashdefault -o default bundle bundle2.{0..7} bundle3.{0..3} bundler bundler2.{0..7} bundler3.{0..3} # vim: ai ft=sh sw=4 sts=4 et diff --git a/completion-ruby-all b/completion-ruby-all index 27cdcee..8768843 100644 --- a/completion-ruby-all +++ b/completion-ruby-all @@ -99,7 +99,7 @@ else _cr_load gem gem1.{8..9} gem2.{0..7} gem3.{0..3} jgem _cr_load jruby _cr_load rails - _cr_load bundle bundler + _cr_load bundle bundle2.{0..7} bundle3.{0..3} bundler bundler2.{0..7} bundler3.{0..3} _cr_load rake _cr_load ruby ruby1.{8..9} ruby2.{0..7} ruby3.{0..3} From e4e00508fe8f8d2b0bd9ab29e592dd80fd7d92c5 Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Sun, 2 Jun 2024 13:24:52 -0600 Subject: [PATCH 4/4] rake: complete versioned rake commands As with gem and ruby, complete version-suffixed commands as well. The rake command has 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 --- completion-rake | 2 +- completion-ruby-all | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/completion-rake b/completion-rake index 5f92ffe..ebda858 100644 --- a/completion-rake +++ b/completion-rake @@ -180,5 +180,5 @@ __rake_tasks() { fi } -complete -F __rake -o bashdefault -o default rake rake1.8 rake1.9 +complete -F __rake -o bashdefault -o default rake rake1.{8..9} rake2.{0..7} rake3.{0..3} # vim: ai ft=sh sw=4 sts=4 et diff --git a/completion-ruby-all b/completion-ruby-all index 8768843..a6e1609 100644 --- a/completion-ruby-all +++ b/completion-ruby-all @@ -100,7 +100,7 @@ else _cr_load jruby _cr_load rails _cr_load bundle bundle2.{0..7} bundle3.{0..3} bundler bundler2.{0..7} bundler3.{0..3} - _cr_load rake + _cr_load rake rake1.{8..9} rake2.{0..7} rake3.{0..3} _cr_load ruby ruby1.{8..9} ruby2.{0..7} ruby3.{0..3} unset -f _cr_load _cr_anycmd