Skip to content

Commit

Permalink
rake: complete versioned rake commands
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kevinoid committed Jun 2, 2024
1 parent f0bbe1e commit e4e0050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion completion-rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion completion-ruby-all
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4e0050

Please sign in to comment.