mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-26 01:57:26 +08:00
Compare commits
No commits in common. "12669f29f0843b8b980dd137f150a74511f88842" and "6ae78695efa8c222d716db267041f3ad19114d98" have entirely different histories.
12669f29f0
...
6ae78695ef
@ -21,8 +21,6 @@ plugins=(... rails)
|
|||||||
| `rgen`| `rails generate` | Generate boilerplate code |
|
| `rgen`| `rails generate` | Generate boilerplate code |
|
||||||
| `rgm` | `rails generate migration` | Generate a db migration |
|
| `rgm` | `rails generate migration` | Generate a db migration |
|
||||||
| `rp` | `rails plugin` | Run a Rails plugin command |
|
| `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 |
|
|
||||||
| `ru` | `rails runner` | Run Ruby code in the context of Rails |
|
| `ru` | `rails runner` | Run Ruby code in the context of Rails |
|
||||||
| `rs` | `rails server` | Launch a web server |
|
| `rs` | `rails server` | Launch a web server |
|
||||||
| `rsd` | `rails server --debugger` | Launch a web server with debugger |
|
| `rsd` | `rails server --debugger` | Launch a web server with debugger |
|
||||||
@ -45,6 +43,8 @@ plugins=(... rails)
|
|||||||
| `rdsl` | `rake db:schema:load` | Load the database schema |
|
| `rdsl` | `rake db:schema:load` | Load the database schema |
|
||||||
| `rlc` | `rake log:clear` | Clear Rails logs |
|
| `rlc` | `rake log:clear` | Clear Rails logs |
|
||||||
| `rn` | `rake notes` | Search for notes (`FIXME`, `TODO`) in code comments |
|
| `rn` | `rake notes` | Search for notes (`FIXME`, `TODO`) in code comments |
|
||||||
|
| `rr` | `rake routes` | List all defined routes |
|
||||||
|
| `rrg` | `rake routes \| grep` | List and filter the defined routes |
|
||||||
| `rt` | `rake test` | Run Rails tests |
|
| `rt` | `rake test` | Run Rails tests |
|
||||||
| `rmd` | `rake middleware` | Interact with Rails middlewares |
|
| `rmd` | `rake middleware` | Interact with Rails middlewares |
|
||||||
| `rsts` | `rake stats` | Print code statistics |
|
| `rsts` | `rake stats` | Print code statistics |
|
||||||
|
|||||||
@ -25,4 +25,4 @@ gentoo_precmd() {
|
|||||||
autoload -U add-zsh-hook
|
autoload -U add-zsh-hook
|
||||||
add-zsh-hook precmd gentoo_precmd
|
add-zsh-hook precmd gentoo_precmd
|
||||||
|
|
||||||
PROMPT='%(!.%B%F{red}.%B%F{green}%n@)%m %F{blue}%(!.%1~.%~) ${vcs_info_msg_0_}%(!.#.$)%k%b%f '
|
PROMPT='%(!.%B%F{red}.%B%F{green}%n@)%m %F{blue}%(!.%1~.%~) ${vcs_info_msg_0_}%(!.#.$)%{$reset_color%} '
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user