Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
e33bc403
Unverified
Commit
e33bc403
authored
Sep 01, 2016
by
Julien Negrotto
Committed by
Marc Cornellà
Dec 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(rake): support square brackets with rake binstub (#5361)
Closes #5361
parent
b8e4aa2b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
README.md
plugins/rake/README.md
+13
-9
rake.plugin.zsh
plugins/rake/rake.plugin.zsh
+7
-8
No files found.
plugins/rake/README.md
View file @
e33bc403
...
@@ -13,20 +13,24 @@ plugins=(... rake)
...
@@ -13,20 +13,24 @@ plugins=(... rake)
The plugin aliases the rake command so you can pass arguments when invoking rake tasks
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
without having to escape the brackets, i.e., you can run
```
```
sh
rake namespace:task[
'argument'
]
rake namespace:task[
'argument'
]
```
```
instead of having to do
instead of having to do
```
```
sh
rake namespace:task
\[
'argument'
\]
rake namespace:task
\[
'argument'
\]
```
```
| Alias | Command | Description |
| Alias | Command | Description |
|--------|--------------------------------|-----------------------------------------------|
| ---------- | ------------------------------ | --------------------------------------------- |
| rake |
`noglob rake`
| Allows unescaped square brackets |
|
`rake`
|
`noglob rake`
| Allows unescaped square brackets |
| brake |
`noglob bundle exec rake`
| Same as above but call rake using bundler |
|
`bin/rake`
|
`noglob bin/rake`
| Same as above but using rake binstub |
| srake |
`noglob sudo rake`
| Same as rake but using sudo |
|
`brake`
|
`noglob bundle exec rake`
| Same as above but call rake using bundler |
| sbrake |
`noglob sudo bundle exec rake`
| Same as above but using both sudo and 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
## Jim Weirich
...
...
plugins/rake/rake.plugin.zsh
View file @
e33bc403
# 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.
# over the years. We will miss you dearly.
alias
jimweirich
=
"rake"
alias
jimweirich
=
'rake'
alias
rake
=
"noglob rake"
# allows square brackets for rake task invocation
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
brake
=
'noglob bundle exec rake'
# execute the bundled rake gem
alias
srake
=
'noglob sudo rake'
# noglob must come before sudo
alias
srake
=
'noglob sudo rake'
# noglob must come before sudo
alias
sbrake
=
'noglob sudo bundle exec rake'
# altogether now ...
alias
sbrake
=
'noglob sudo bundle exec rake'
# altogether now ...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment