Skip to content

Instantly share code, notes, and snippets.

@abams
Last active August 29, 2015 14:05
Show Gist options
  • Save abams/1254582470921d2562d5 to your computer and use it in GitHub Desktop.
Save abams/1254582470921d2562d5 to your computer and use it in GitHub Desktop.
.bashrc
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