1 export PATH=/usr/local/bin:/usr/local/sbin:$PATH
2 export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
5 export JAVA_HOME=$(/usr/libexec/java_home)
8 export EC2_HOME=/Users/benbeltran/Documents/code/tools/ec2-api-tools-1.5.2.4
9 export PATH=$PATH:$EC2_HOME/bin
10 export EC2_PRIVATE_KEY=~/.ec2/pk-XBFB3HSRRZAILOFUPE44QAJI5M4Z5TNN.pem
11 export EC2_CERT=~/.ec2/cert-XBFB3HSRRZAILOFUPE44QAJI5M4Z5TNN.pem
13 export TERM=screen-256color
16 function _set_git_envar_info() {
21 RVM_COMMAND=$(rvm-prompt)
22 if [[ $RVM_COMMAND == "" ]]
26 if [[ $(which git 2> /dev/null) ]]
29 STATUS=$(git status 2>/dev/null)
34 GIT_BRANCH="$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')"
35 if [[ -n "$GIT_BRANCH" ]]
39 if [[ "$STATUS" == *'working directory clean'* ]]
44 if [[ "$STATUS" == *'Changes to be committed:'* ]]
46 GIT_STATE='!' # Index has files staged for commit
48 if [[ "$STATUS" == *'Changed but not updated:'* ]]
50 GIT_STATE="?" # Working tree has files modified but unstaged
52 if [[ "$STATUS" == *'Untracked files:'* ]]
54 GIT_STATE='?' # Working tree has untracked files
60 export -f _set_git_envar_info
62 #this thing for my prompt.
63 export PROMPT_COMMAND="_set_git_envar_info"
64 export PS1='\[\e[0;31m\]\u\[\e[0m\] at \[\e[0;33m\]\h\[\e[0m\] in \[\e[0;32m\]\w\[\e[0m\]$GIT_PREFIX\[\e[1;34m\]$GIT_BRANCH\[\e[0m\]\[\e[0;32m\]$GIT_STATE \[\e[0;33m\]($RVM_COMMAND) \[\e[0m\] \n\$ '
66 #display fortune when I start
68 /usr/local/bin/fortune
76 alias dwarffortress="/Applications/Dwarf\ Fortress/df"
78 alias rspec="rspec --color"
81 alias gpsc="git push origin "+$GIT_BRANCH
82 alias gplc="git pull origin "+$GIT_BRANCH
84 #Enable Bash Completion
85 if [ -f `brew --prefix`/etc/bash_completion ]; then
86 . `brew --prefix`/etc/bash_completion
89 #Screeninator and RVM scripts
90 [[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm