summaryrefslogtreecommitdiff
path: root/plugins/rake
diff options
context:
space:
mode:
authorJulien Negrotto <jtnegrotto@gmail.com>2016-09-01 11:08:14 -0500
committerMarc CornellĂ  <hello@mcornella.com>2021-12-28 20:51:33 +0100
commite33bc4035171168ea7134d1494f7476cb9d9f352 (patch)
tree47fe60f97285013b66fbb27a1d654bee3af52879 /plugins/rake
parentb8e4aa2b0cf53301f7decbbea7ab210cefa31e59 (diff)
downloadzsh-e33bc4035171168ea7134d1494f7476cb9d9f352.tar.gz
zsh-e33bc4035171168ea7134d1494f7476cb9d9f352.tar.bz2
zsh-e33bc4035171168ea7134d1494f7476cb9d9f352.zip
feat(rake): support square brackets with rake binstub (#5361)
Closes #5361
Diffstat (limited to 'plugins/rake')
-rw-r--r--plugins/rake/README.md22
-rw-r--r--plugins/rake/rake.plugin.zsh15
2 files changed, 20 insertions, 17 deletions
diff --git a/plugins/rake/README.md b/plugins/rake/README.md
index e888c0785..72f2a8525 100644
--- a/plugins/rake/README.md
+++ b/plugins/rake/README.md
@@ -13,25 +13,29 @@ plugins=(... rake)
The plugin aliases the rake command so you can pass arguments when invoking rake tasks
without having to escape the brackets, i.e., you can run
-```
+
+```sh
rake namespace:task['argument']
```
+
instead of having to do
-```
+
+```sh
rake namespace:task\['argument'\]
```
-| Alias | Command | Description |
-|--------|--------------------------------|-----------------------------------------------|
-| rake | `noglob rake` | Allows unescaped square brackets |
-| brake | `noglob bundle exec rake` | Same as above but call rake using bundler |
-| srake | `noglob sudo rake` | Same as rake but using sudo |
-| sbrake | `noglob sudo bundle exec rake` | Same as above but using both sudo and bundler |
+| Alias | Command | Description |
+| ---------- | ------------------------------ | --------------------------------------------- |
+| `rake` | `noglob rake` | Allows unescaped square brackets |
+| `bin/rake` | `noglob bin/rake` | Same as above but using rake binstub |
+| `brake` | `noglob bundle exec rake` | Same as above but call rake using bundler |
+| `srake` | `noglob sudo rake` | Same as rake but using sudo |
+| `sbrake` | `noglob sudo bundle exec rake` | Same as above but using both sudo and bundler |
## Jim Weirich
The plugin also aliases `rake` to [`jimweirich`](https://github.com/jimweirich), author of Rake
and big time contributor to the Ruby open source community. He passed away in 2014:
-> Thank you Jim for everything you contributed to the Ruby and open source community
+> Thank you Jim for everything you contributed to the Ruby and open source community
> over the years. We will miss you dearly. — [**@robbyrussell**](https://github.com/ohmyzsh/ohmyzsh/commit/598a9c6f990756386517d66b6bcf77e53791e905)
diff --git a/plugins/rake/rake.plugin.zsh b/plugins/rake/rake.plugin.zsh
index 3ceb20fea..0c507e628 100644
--- a/plugins/rake/rake.plugin.zsh
+++ b/plugins/rake/rake.plugin.zsh
@@ -1,10 +1,9 @@
-# Thank you Jim for everything you contributed to the Ruby and open source community
+# Thank you Jim for everything you contributed to the Ruby and open source community
# over the years. We will miss you dearly.
-alias jimweirich="rake"
-
-alias rake="noglob rake" # allows square brackets for rake task invocation
-alias brake='noglob bundle exec rake' # execute the bundled rake gem
-alias srake='noglob sudo rake' # noglob must come before sudo
-alias sbrake='noglob sudo bundle exec rake' # altogether now ...
-
+alias jimweirich='rake'
+alias rake='noglob rake' # allows square brackts for rake task invocation
+alias 'bin/rake'='noglob bin/rake' # support use of binstub
+alias brake='noglob bundle exec rake' # execute the bundled rake gem
+alias srake='noglob sudo rake' # noglob must come before sudo
+alias sbrake='noglob sudo bundle exec rake' # altogether now ...