mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Update ruby-related shell aliases
This commit is contained in:
@@ -12,13 +12,25 @@ alias bu="bundle update"
|
|||||||
alias bco="bundle console"
|
alias bco="bundle console"
|
||||||
|
|
||||||
# Bundler aliases for specific ruby commands
|
# Bundler aliases for specific ruby commands
|
||||||
alias ru="bundle exec ruby"
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
alias ra="bundle exec rake"
|
alias ru="bundle exec ruby"
|
||||||
alias rai="bundle exec rails"
|
alias ra="bundle exec rake"
|
||||||
alias rs="bundle exec rspec"
|
alias rai="bundle exec rails"
|
||||||
alias ca="bundle exec cap"
|
alias rs="bundle exec rspec"
|
||||||
alias cu="bundle exec cucumber"
|
alias ca="bundle exec cap"
|
||||||
alias va="bundle exec vagrant"
|
alias cu="bundle exec cucumber"
|
||||||
|
alias va="bundle exec vagrant"
|
||||||
|
elif [ -n "$ZSH_VERSION" ]; then
|
||||||
|
# With Z-Shell I use oh-my-zsh and it's bundler plugin negating the need to
|
||||||
|
# manually prefix command with 'bundle exec'.
|
||||||
|
alias ru="ruby"
|
||||||
|
alias ra="rake"
|
||||||
|
alias rai="rails"
|
||||||
|
alias rs="rspec"
|
||||||
|
alias ca="cap"
|
||||||
|
alias cu="cucumber"
|
||||||
|
alias va="vagrant"
|
||||||
|
fi
|
||||||
|
|
||||||
# Load rbenv or RVM depending on which is available
|
# Load rbenv or RVM depending on which is available
|
||||||
if [ -d "$HOME/.rbenv/bin" ]; then
|
if [ -d "$HOME/.rbenv/bin" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user