Created
September 15, 2010 21:49
-
-
Save fredoliveira/581554 to your computer and use it in GitHub Desktop.
.bashrc
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
| # EC2 | |
| 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/ | |
| # colors | |
| export TERM=xterm-color | |
| export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
| export CLICOLOR=1 | |
| alias ls='ls -G' | |
| # git | |
| alias gb='git branch' | |
| alias gba='git branch -a' | |
| alias gc='git commit -v' | |
| alias gd='git diff | mate' | |
| alias gl='git pull' | |
| alias gp='git push' | |
| alias gst='git status' | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/@\1/' | |
| } | |
| function prompt { | |
| local BLACK="\[\033[0;30m\]" | |
| local VIOLET="\[\033[1;35m\]" | |
| local CYAN="\[\033[1;36m\]" | |
| local RESET="\[\033[0m\]" | |
| local GREEN="\[\033[0;32m\]" | |
| local BGY="\[\033[43m\]" | |
| local RED="\[\033[1;31m\]" | |
| local BLACKONYELLOW="\[\033[30;43m\]" | |
| PS1=">> $VIOLET\u$CYAN@$VIOLET\h $RESET[$GREEN\w$RESET] $BLACKONYELLOW\$(parse_git_branch)$RESET \n \$ " | |
| } | |
| prompt | |
| # path | |
| export PATH=$HOME/.bin/:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:/usr/local/share/npm/bin:$PATH | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. |
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
| source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment