Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aeden
Created March 14, 2010 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aeden/331864 to your computer and use it in GitHub Desktop.
Save aeden/331864 to your computer and use it in GitHub Desktop.
export PATH=$PATH:/Users/aeden/.gem/ruby/1.8/bin
alias gst='git status '
alias gc='git commit '
alias gca='git commit -a '
alias ga='git add '
alias gco='git checkout '
alias gb='git branch '
alias gm='git merge '
alias gp='git push '
alias gpu='git pull '
source ~/.git-completion.bash
rvm_info() {
basename $(rvm gemdir)
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [branch:\1]/'
}
function proml {
PS1="\w\$(parse_git_branch) [\$(rvm_info)]\$ "
PS2='> '
PS4='+ '
}
# rvm-install added:
if [[ -s /Users/aeden/.rvm/scripts/rvm ]] ; then source /Users/aeden/.rvm/scripts/rvm ; fi
proml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment