Created
January 31, 2011 21:06
-
-
Save oddlyzen/804814 to your computer and use it in GitHub Desktop.
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
| alias gc='git commit -am' | |
| alias lsd='ls -la' | |
| alias coed='cd ~/code/collegeonly && mate .' | |
| alias cost='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start && rake sunspot:solr:start && rake sunspot:solr:start RAILS_ENV=cucumber && | |
| rake redis:development:start && rake redis:test:start && script/server -p2323' | |
| alias gco='git co' | |
| alias ss="script/server" | |
| alias sc="script/console" | |
| alias cdco="cd ~/code/collegeonly" | |
| alias cdan="cd ~/code/achievenext" | |
| alias gs="git status" | |
| alias pgstart="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" | |
| alias an='rvm use 1.8.7 && rvm gemset use achievenext && cd ~/code/achievenext && mate . && pgstart' | |
| set -o vi | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
| } | |
| function proml { | |
| local BLUE="\[\033[0;34m\]" | |
| local RED="\[\033[0;31m\]" | |
| local LIGHT_RED="\[\033[1;31m\]" | |
| local GREEN="\[\033[0;32m\]" | |
| local LIGHT_GREEN="\[\033[1;32m\]" | |
| local WHITE="\[\033[1;37m\]" | |
| local LIGHT_GRAY="\[\033[0;37m\]" | |
| local DARK_GRAY="\[\033[1;30m\]" | |
| local YELLOW="\[\033[0;33m\]" | |
| local TEAL="\[\033[0;36m\]" | |
| local LIGHT_TEAL="\[\033[1;36m\]" | |
| case $TERM in | |
| xterm*) | |
| TITLEBAR='\[\033]0;\u@\h:\w\007\]' | |
| ;; | |
| *) | |
| TITLEBAR="" | |
| ;; | |
| esac | |
| PS1="${TITLEBAR}\ | |
| $GREEN{$YELLOW\$(date +%H:%M)$GREEN}\ | |
| $LIGHT_GREEN={$LIGHT_GRAY\u@\h:$WHITE\w$RED\$(parse_git_branch)$LIGHT_GREEN}=>$GREEN " | |
| PS2='> ' | |
| PS4='+ ' | |
| } | |
| proml | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
| rvm 1.8.7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment