Last active
August 29, 2015 14:05
-
-
Save abams/1254582470921d2562d5 to your computer and use it in GitHub Desktop.
.bashrc
This file contains 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
export PATH=".bin:$HOME/bin:/usr/local/foreman/bin:/usr/local/bin:/Applications/Postgres.app/Contents/MacOS/bin:$PATH" | |
# RBENV | |
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH" | |
# SSL CERTS | |
export SSL_CERT_FILE=/usr/local/etc/cacert.pem | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
alias ll='ls -al' | |
alias z='zeus test' | |
alias gl='git l' | |
alias gs='git status' | |
alias be='bundle exec' | |
alias gc='git co' | |
nuke() { | |
if [ "$1" = 'development' ] || [ "$1" = 'test' ]; then | |
RAILS_ENV=$1 be rake db:drop; RAILS_ENV=$1 be rake db:create; RAILS_ENV=$1 be rake db:migrate | |
RAILS_ENV=$1 be rake db:seed | |
fi | |
if [ "$1" = 'test' ]; then | |
RAILS_ENV=$1 be rake db:$1:prepare | |
fi | |
} | |
sp() { | |
echo $1 | tr ${2:-:}, '\n' | |
} | |
# Editor | |
export EDITOR='subl -w' | |
# Paths | |
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" | |
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true | |
# Colors | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
GIT_PS1_SHOWDIRTYSTATE=true | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
RESET="\[\033[0;37;00m\]" | |
PS1="\w$YELLOW\$(__git_ps1)$RESET\$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment