Created
April 15, 2013 00:46
-
-
Save fredmp/5384919 to your computer and use it in GitHub Desktop.
My .bash_profile configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| eval "$(rbenv init -)" | |
| export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH" | |
| export PS1="\u > \W$ " | |
| bind "set completion-ignore-case on" | |
| bind "set show-all-if-ambiguous on" | |
| alias-help () { | |
| echo "Custom Aliases Usage" | |
| echo | |
| echo " b = bundle" | |
| echo " bi = bundle install --path vendor" | |
| echo " be = bundle exec" | |
| echo " bl = bundle list" | |
| echo " bu = bundle update" | |
| echo " bp = bundle package" | |
| echo " binit = bi && bp && echo 'vendor/ruby' >> .gitignore" | |
| echo " rails = bundle exec rails" | |
| echo " rake = bundle exec rake" | |
| echo " rspec = bundle exec rspec" | |
| echo " ll = ls -lah" | |
| echo " pg_start = pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" | |
| echo " pg_stop = pg_ctl -D /usr/local/var/postgres stop -s -m fast" | |
| echo | |
| } | |
| # Rails Commands | |
| alias rails="be rails" | |
| alias rake="be rake" | |
| alias rspec="be rspec" | |
| # General Alias | |
| alias ll="ls -lah" | |
| # Postgresql Alias | |
| alias pg_start="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" | |
| alias pg_stop="pg_ctl -D /usr/local/var/postgres stop -s -m fast" | |
| # Bundler Commands | |
| alias b="bundle" | |
| alias bi="b install --path vendor" | |
| alias be="bundle exec" | |
| alias bl="bundle list" | |
| alias bu="bundle update" | |
| alias bp="bundle package" | |
| alias binit="bi && bp && echo 'vendor/ruby' >> .gitignore" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment