From 3ec4fff033dc6052ca4a6833039046e3da069a36 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 14 Aug 2012 21:10:12 -0400 Subject: [PATCH] Refactor Ruby aliases --- modules/ruby/README.md | 20 ++++++++++++-------- modules/ruby/init.zsh | 21 ++++++++++++--------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/modules/ruby/README.md b/modules/ruby/README.md index e7083bb..71fa340 100644 --- a/modules/ruby/README.md +++ b/modules/ruby/README.md @@ -38,19 +38,23 @@ dependencies, with [Bundler][4]. Aliases ------- +### General + + - `rb` is short for `ruby`. + ### Bundler - - `b` manages ruby dependencies (`bundle`). - - `be` executes a script in the context of the current bundle. - - `bi` installs the gems specified in the *Gemfile* in *vendor/bundle*. - - `bI` installs the following: + - `rbb` manages ruby dependencies (`bundle`). + - `rbbe` executes a script in the context of the current bundle. + - `rbbi` installs the gems specified in the *Gemfile* in *vendor/bundle*. + - `rbbI` installs the following: - gems specified in the *Gemfile* in *vendor/bundle*. - packages the gems into *vendor/cache*. - appends bundler directories to *.gitignore*. - - `bl` lists all gems in the current bundle. - - `bo` opens an installed gem in the editor. - - `bp` packages gem files into *vendor/cache*. - - `bu` updates gems to their latest version. + - `rbbl` lists all gems in the current bundle. + - `rbbo` opens an installed gem in the editor. + - `rbbp` packages gem files into *vendor/cache*. + - `rbbu` updates gems to their latest version. Authors ------- diff --git a/modules/ruby/init.zsh b/modules/ruby/init.zsh index 69ee51b..7b19d7d 100644 --- a/modules/ruby/init.zsh +++ b/modules/ruby/init.zsh @@ -40,17 +40,20 @@ fi # Aliases # +# General +alias rb='ruby' + # Bundler if (( $+commands[bundle] )); then - alias b='bundle' - alias be='b exec' - alias bi='b install --path vendor/bundle' - alias bl='b list' - alias bo='b open' - alias bp='b package' - alias bu='b update' - alias bI='bi \ - && b package \ + alias rbb='bundle' + alias rbbe='rbb exec' + alias rbbi='rbb install --path vendor/bundle' + alias rbbl='rbb list' + alias rbbo='rbb open' + alias rbbp='rbb package' + alias rbbu='rbb update' + alias rbbI='rbbi \ + && rbb package \ && print .bundle >>! .gitignore \ && print vendor/bundle >>! .gitignore \ && print vendor/cache >>! .gitignore'