1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

Refactor Ruby aliases

This commit is contained in:
Sorin Ionescu
2012-08-14 21:10:12 -04:00
parent e03b8b9004
commit 3ec4fff033
2 changed files with 24 additions and 17 deletions

View File

@@ -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'