Skip to content

Commit e4e0050

Browse files
committed
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 <[email protected]>
1 parent f0bbe1e commit e4e0050

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

completion-rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,5 @@ __rake_tasks() {
180180
fi
181181
}
182182

183-
complete -F __rake -o bashdefault -o default rake rake1.8 rake1.9
183+
complete -F __rake -o bashdefault -o default rake rake1.{8..9} rake2.{0..7} rake3.{0..3}
184184
# 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
@@ -100,7 +100,7 @@ else
100100
_cr_load jruby
101101
_cr_load rails
102102
_cr_load bundle bundle2.{0..7} bundle3.{0..3} bundler bundler2.{0..7} bundler3.{0..3}
103-
_cr_load rake
103+
_cr_load rake rake1.{8..9} rake2.{0..7} rake3.{0..3}
104104
_cr_load ruby ruby1.{8..9} ruby2.{0..7} ruby3.{0..3}
105105

106106
unset -f _cr_load _cr_anycmd

0 commit comments

Comments
 (0)