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'