Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Created November 25, 2010 17:08
Show Gist options
  • Save mxriverlynn/715650 to your computer and use it in GitHub Desktop.
Save mxriverlynn/715650 to your computer and use it in GitHub Desktop.
.bashrc for MSysGit's "Git Bash Shell" (MinGW32 shell) with Pik
pik_info() {
version= pik info | awk '/full_version/ {print $2,$3}' | sed 's/\"//;s/\s/\-/'
printf "${version}"
}
function prompt {
local LIGHT_RED="\[\033[1;31m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local NO_COLOUR="\[\033[0m\]"
local TITLEBAR='\[\033]0;\u@\h\007\]'
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
# export GIT_PS1_SHOWUPSTREAM=auto
export GIT_PS1_SHOWSTASHSTATE=true
PS1="$TITLEBAR\n\w/$LIGHT_GREEN\$(__git_ps1 ' (%s)')$LIGHT_RED \$(pik_info)\n$NO_COLOUR$ "
}
prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment