Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 94 lines (80 sloc) 3.363 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
export PATH="/usr/local/bin:$PATH"
export PATH=$PATH:"/usr/local/mongodb/bin"
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin":$PATH
export IRBRC="$HOME/.irbrc"

export COLOR_NC='\e[0m' # No Color
export COLOR_WHITE='\e[1;37m'
export COLOR_BLACK='\e[0;30m'
export COLOR_BLUE='\e[0;34m'
export COLOR_LIGHT_BLUE='\e[1;34m'
export COLOR_GREEN='\e[0;32m'
export COLOR_LIGHT_GREEN='\e[1;32m'
export COLOR_CYAN='\e[0;36m'
export COLOR_LIGHT_CYAN='\e[1;36m'
export COLOR_RED='\e[0;31m'
export COLOR_LIGHT_RED='\e[1;31m'
export COLOR_PURPLE='\e[0;35m'
export COLOR_LIGHT_PURPLE='\e[1;35m'
export COLOR_BROWN='\e[0;33m'
export COLOR_YELLOW='\e[1;33m'
export COLOR_GRAY='\e[0;30m'
export COLOR_LIGHT_GRAY='\e[0;37m'
alias colorslist="set | egrep 'COLOR_\w*'" # lists all the colors

export PS1='\[\033[G\]\W$(__git_ps1 " \[${COLOR_RED}\](%s)\[${COLOR_NC}\]")⸘ '

export TERM=xterm-color
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
export CLICOLOR=1
export EDITOR='subl'
export GIT_EDITOR='subl -w'
export VISUAL=$EDITOR
# sets title of window to be user@host
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*} ${PWD}"; echo -ne "\007"'

alias ls='ls -G'
alias ll='ls -lah'
alias ..='cd ..;' # can then do .. .. .. to move up multiple directories.
alias ...='.. ..'
alias systail='tail -f /var/log/system.log'

# rails stuff
alias log='tail -f -0 ./log/*.log &'
alias stoplog='killall tail'
alias model='rails generate model'
alias controller='rails generate controller'
alias migration='rails generate migration'
alias r='bundle exec rake'
alias migrate='r db:migrate && bundle exec rake db:test:prepare'
alias rollback='r db:rollback'
alias redo="r db:migrate && r db:rollback"
alias restart='touch tmp/restart.txt'
alias raisl='rails'

alias b='bundle'
alias ta='bundle check || (echo "Trying to bundle locally..." && rm -f Gemfile.lock && bundle install --local) || (echo "Bundling using remote sources..." && bundle update)'
alias t='ta && rm -rf spec/dummy && bundle exec rake test_app'
alias s='ta && rails s'
alias c='ta && rails s'
alias ber="bundle exec rspec"
alias bes="bundle exec spec"
alias bec="bundle exec cucumber"
alias be="bundle exec"
alias berrim='bundle exec rake railties:install:migrations; be rake db:migrate'

alias master="git checkout master"
alias 1-3-stable="git checkout 1-3-stable"
alias 1-2-stable="git checkout 1-2-stable"
alias 1-1-stable="git checkout 1-1-stable"
alias 1-0-stable="git checkout 1-0-stable"

alias logs="cd /Users/ryan/Library/Containers/com.codeux.irc.textual/Data/Logs/Twist"
alias ss="bundle exec rake db:drop db:create db:migrate db:seed AUTO_ACCEPT=1 && rake spree_sample:load --trace"

# readline settings
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous On" # this allows you to automatically show completion without double tab-ing

# Turn on advanced bash completion if the file exists (get it here: http://www.caliban.org/bash/index.shtml#completion)
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

# history (bigger size, no duplicates, always append):
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend

alias h='history|g'
if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Something went wrong with that request. Please try again.