From abfa69fc015f02e7b0ee95e1da016b68b32e4e9a Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 14 Aug 2012 21:13:07 -0400 Subject: [PATCH] Refactor Rails aliases --- modules/rails/README.md | 29 +++++++++++++++-------------- modules/rails/init.zsh | 27 ++++++++++++++------------- 2 files changed, 29 insertions(+), 27 deletions(-) diff --git a/modules/rails/README.md b/modules/rails/README.md index f250d68..5a597a9 100644 --- a/modules/rails/README.md +++ b/modules/rails/README.md @@ -6,20 +6,21 @@ Defines [Ruby on Rails][1] aliases. Aliases ------- - - `rc` starts the Rails console. - - `rdc` starts the Rails console connected to the database. - - `rdm` migrates the database. - - `rdM` migrates the database and recreates the test database. - - `rdr` rolls the database schema back to the previous version. - - `rg` generates new code. - - `rl` displays the log. - - `rlc` truncates logs to zero bytes. - - `rp` installs a plugin. - - `rr` runs code in the application environment. - - `rs` starts the Rails server. - - `rsd` starts the Rails server with the debugger. - - `rx` destroys newly generated code. - + - `ror` is short for `rails`. + - `rorc` starts the Rails console. + - `rordc` starts the Rails console connected to the database. + - `rordm` migrates the database. + - `rordM` migrates the database and recreates the test database. + - `rordr` rolls the database schema back to the previous version. + - `rorg` generates new code. + - `rorl` displays the log. + - `rorlc` truncates logs to zero bytes. + - `rorp` installs a plugin. + - `rorr` runs code in the application environment. + - `rors` starts the Rails server. + - `rorsd` starts the Rails server with the debugger. + - `rorx` destroys newly generated code. + Authors ------- diff --git a/modules/rails/init.zsh b/modules/rails/init.zsh index ee6f273..e51185b 100644 --- a/modules/rails/init.zsh +++ b/modules/rails/init.zsh @@ -16,19 +16,20 @@ fi # Aliases (Compatible with Rails 2) # -alias rc='_rails-command console' -alias rdc='_rails-command dbconsole' -alias rdm='rake db:migrate' -alias rdM='rake db:migrate db:test:clone' -alias rdr='rake db:rollback' -alias rg='_rails-command generate' -alias rl='tail -f log/development.log' -alias rlc='rake log:clear' -alias rp='_rails-command plugin' -alias rr='_rails-command runner' -alias rs='_rails-command server' -alias rsd='_rails-command server --debugger' -alias rx='_rails-command destroy' +alias ror='rails' +alias rorc='_rails-command console' +alias rordc='_rails-command dbconsole' +alias rordm='rake db:migrate' +alias rordM='rake db:migrate db:test:clone' +alias rordr='rake db:rollback' +alias rorg='_rails-command generate' +alias rorl='tail -f log/development.log' +alias rorlc='rake log:clear' +alias rorp='_rails-command plugin' +alias rorr='_rails-command runner' +alias rors='_rails-command server' +alias rorsd='_rails-command server --debugger' +alias rorx='_rails-command destroy' # # Functions