mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:06:41 +00:00
46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Aliases
|
|
alias po="powify"
|
|
alias lu="lunchy"
|
|
alias he="heroku"
|
|
alias f="foreman"
|
|
alias fs="foreman start"
|
|
alias fr="foreman run"
|
|
|
|
# Aliases for specific ruby commands
|
|
alias ru="bundle exec ruby"
|
|
alias ra="bundle exec rake"
|
|
alias rai="bundle exec rails"
|
|
alias rs="bundle exec rspec"
|
|
alias ca="bundle exec cap"
|
|
alias cu="bundle exec cucumber"
|
|
alias scu="RAILS_ENV=cucumber bundle exec spring cucumber"
|
|
alias va="bundle exec vagrant"
|
|
|
|
alias bc="bundle check"
|
|
alias bco="bundle console"
|
|
|
|
if [ -n "$BASH_VERSION" ]; then
|
|
# Bundler aliases
|
|
alias be="bundle exec"
|
|
alias bl="bundle list"
|
|
alias bp="bundle package"
|
|
alias bo="bundle open"
|
|
alias bu="bundle update"
|
|
alias bi="bundle_install"
|
|
alias bcn="bundle clean"
|
|
fi
|
|
|
|
# Load rbenv or RVM depending on which is available
|
|
if [ -d "$HOME/.rbenv/bin" ]; then
|
|
path_prepend "$HOME/.rbenv/bin"
|
|
path_prepend "$HOME/.rbenv/shims"
|
|
eval "$(rbenv init -)"
|
|
elif [ -s "$HOME/.rvm/scripts/rvm" ]; then
|
|
source "$HOME/.rvm/scripts/rvm"
|
|
fi
|
|
|
|
LUNCHY_DIR="$(dirname `gem which lunchy`)/../extras"
|
|
if [ -f "$LUNCHY_DIR/lunchy-completion.bash" ]; then
|
|
source "$LUNCHY_DIR/lunchy-completion.bash"
|
|
fi
|