Created
August 2, 2012 19:05
-
-
Save jgv/3239796 to your computer and use it in GitHub Desktop.
This file contains 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
export PROMPT_COMMAND="history -a" | |
#rds | |
export AWS_RDS_HOME=~/.rds | |
export PATH=$PATH:$AWS_RDS_HOME/bin | |
#ec 2 | |
export EC2_HOME=~/.ec2 | |
export PATH=$PATH:$EC2_HOME/bin | |
export EC2_PRIVATE_KEY=`ls $EC2_HOME/pk-*.pem` | |
export EC2_CERT=`ls $EC2_HOME/cert-*.pem` | |
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home/ | |
#rack | |
export RACK_ENV=development | |
ARCHFLAGS="-arch x86_64" | |
# Source global definitions | |
[[ -s "/etc/bashrc" ]] && source "/etc/bashrc" | |
# Source global aliases | |
[[ -s "$HOME/.aliases.sh" ]] && source "$HOME/.aliases.sh" | |
# Bash completion | |
[[ -s `brew --prefix`/etc/bash_completion ]] && source `brew --prefix`/etc/bash_completion | |
# Git completion | |
[[ -s "$HOME/.git-completion.sh" ]] && source "$HOME/.git-completion.sh" | |
# Load RVM into a shell session | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
function parse_git_deleted { | |
[[ $(git status 2> /dev/null | grep deleted:) != "" ]] && echo "-" | |
} | |
function parse_git_added { | |
[[ $(git status 2> /dev/null | grep "Untracked files:") != "" ]] && echo '+' | |
} | |
function parse_git_modified { | |
[[ $(git status 2> /dev/null | grep modified:) != "" ]] && echo "*" | |
} | |
function parse_git_dirty { | |
# [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "☠" | |
echo "$(parse_git_added)$(parse_git_modified)$(parse_git_deleted)" | |
} | |
function parse_git_branch { | |
echo "$(parse_git_dirty)$(__git_ps1 '%s')" | |
} | |
# Don't put duplicate lines in the history. See bash(1) for more options | |
export HISTCONTROL=ignoredups | |
# Ignore same sucessive entries. | |
export HISTCONTROL=ignoreboth | |
# Autofix typos | |
shopt -s cdspell | |
# Check the window size after each command and, if necessary, | |
# Update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
#export LSCOLORS='Exfxcxdxbxegedabagacad' | |
PS1="\u@\w \$(parse_git_branch)\n> " | |
# rvm | |
[[ -s "/Users/jgv/.rvm/scripts/rvm" ]] && source "/Users/jgv/.rvm/scripts/rvm" | |
export PATH='/usr/local/bin:/Users/jgv/.rvm/bin:/Users/jgv/.rvm/gems/ruby-1.9.2-p180/bin:/Users/jgv/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/jgv/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/jgv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/jgv/.rds/bin:/Users/jgv/.ec2/bin:/Users/jgv/.rds/bin:/Users/jgv/.ec2/bin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment