Skip to content

Instantly share code, notes, and snippets.

@retrofox
Created November 10, 2011 15:17
Show Gist options
  • Save retrofox/1355089 to your computer and use it in GitHub Desktop.
Save retrofox/1355089 to your computer and use it in GitHub Desktop.
desktop dev configuration
# prints git current branch into project folder
function currentBranch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
}
PS1="\h:\w\[\033[0;36m\]\$(currentBranch) \[\033[0m\]\$ "
# git alias
alias gko='git checkout'
alias gb='git branch'
alias gba='git branch -a'
alias ggc='git commit -v'
alias ggd='git diff | mate'
alias ggl='git pull'
alias ggp='git push'
alias gst='clear & git status'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment