Skip to content

Instantly share code, notes, and snippets.

@QuillyT
Created February 16, 2016 01:15
Show Gist options
  • Save QuillyT/3f897372478ba4a6f7d1 to your computer and use it in GitHub Desktop.
Save QuillyT/3f897372478ba4a6f7d1 to your computer and use it in GitHub Desktop.
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\]🙊 "
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
source /usr/local/etc/bash_completion.d/git-completion.bash
alias cdp="cd ~/Projects/gSchool/projects"
alias cdP="cd ~/Projects"
alias cdg="cd ~/Projects/gSchool"
alias cdgo="cd $GOPATH"
alias cdgome="cd $GOPATH/src/github.com/QuillyT/"
alias cdL="cd ~/Projects/Lynxsy/Web/LynxsyMVP"
alias cdQ="cd ~/Projects/QuentinTai"
alias gs='git status'
alias ga='git add -A'
alias gb='git branch'
alias gco='git commit'
alias gcom='git commit -m'
alias gch='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gk='gitk --all&'
alias gx='gitx --all'
alias gr='go run'
alias jn='jasmine-node'
alias rr='rp5 run'
alias stageit='git co staging && git fetch && git pull && git push staging staging:master && heroku run rake db:migrate -r staging && heroku restart -r staging'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment