Created
February 20, 2012 20:41
-
-
Save phatduckk/1871283 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
YELLOW="\[\033[1;33m\]" | |
PINK="\[\e[1;35m\]" | |
GREEN="\[\e[1;32m\]" | |
BLUE="\[\e[1;36m\]" | |
PLAIN="\[\e[m\]" | |
BLACK="\[\e[1;30m\]" | |
function parse_git_branch { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
json () { | |
python -c "import json; import sys; print json.dumps(json.loads(sys.stdin.read()), sort_keys = True, indent = 4)" | |
} | |
function futon { | |
cd /usr/local/futon4mongo | |
nohup rackup -p 4567 &>/dev/null & | |
sleep 2 | |
open 'http://localhost:4567/_utils/index.html' | |
} | |
source /usr/local/git/contrib/completion/git-completion.bash | |
alias ls="ls -G" | |
alias mongod="/usr/local/mongodb/bin/mongod --dbpath /usr/local/mongo-data" | |
alias mysqlstart='sudo /opt/local/bin/mysqld_safe5 &' | |
alias mysqlstop='/opt/local/bin/mysqladmin5 -u root -p shutdown' | |
export JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" | |
export LSCOLORS="Exfxcxdxbxegedabagacad" | |
export M2_HOME=/usr/local/maven | |
export PATH=/opt/local/bin:/usr/local/share/python:/usr/local/bin:$PATH | |
export GITHUB_AUTH="phatduckk:0adc041a9e64a67f17d38ad42a415433" | |
export PS1="${BLUE}\u@${GREEN}\H:${PINK}\w$YELLOW\$(parse_git_branch)${BLACK} $ ${PLAIN}" | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
[[ -s "/Users/arin/.rvm/scripts/rvm" ]] && source "/Users/arin/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment