1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 18:30:08 +00:00

feat(rails): add some aliases (#11739)

This commit is contained in:
Josh Powell 2023-06-15 05:03:45 -04:00 committed by GitHub
parent 14f0f2971f
commit b1b3a020ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -40,7 +40,10 @@ plugins=(... rails)
| `rn` | `rails notes` | Search for notes (`FIXME`, `TODO`) in code comments |
| `rp` | `rails plugin` | Run a Rails plugin command |
| `rr` | `rails routes` | List all defined routes |
| `rrg` | `rails routes \| grep` | List and filter the defined routes |
| `rrc` | `rails routes --controller` | List and filter routes mapped to specific controller |
| `rre` | `rails routes --expanded` | List all defined routes in expanded table mode |
| `rrg` | `rails routes --grep` | List and filter the defined routes |
| `rru` | `rails routes --unused` | List unused routes |
| `rs` | `rails server` | Launch a web server |
| `rsb` | `rails server --bind` | Launch a web server binding it to a specific IP |
| `rsd` | `rails server --debugger` | Launch a web server with debugger |

View file

@ -68,7 +68,10 @@ alias rmd='rails middleware'
alias rn='rails notes'
alias rp='rails plugin'
alias rr='rails routes'
alias rrg='rails routes | grep'
alias rrc='rails routes --controller'
alias rre='rails routes --expanded'
alias rrg='rails routes --grep'
alias rru='rails routes --unused'
alias rs='rails server'
alias rsb='rails server --bind'
alias rsd='rails server --debugger'