Skip to content

Instantly share code, notes, and snippets.

@tonyhuynh
Created August 19, 2011 18:16
Show Gist options
  • Save tonyhuynh/1157566 to your computer and use it in GitHub Desktop.
Save tonyhuynh/1157566 to your computer and use it in GitHub Desktop.
export PS1="\n\[\033[38m\]\u@\[\033[01;34m\] \w \[\033[31m\]\n\`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1)')\"\`\[\033[37m\]$\[\033[00m\] "
# git
alias gs='git status'
alias gc='git commit'
alias gcm='git commit -m'
alias gco='git checkout'
alias gl='git pull'
alias gpm='git push origin master'
alias gpd='git push origin development'
alias gps='git push origin staging'
alias gpp='git push origin production'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment