Skip to content

Instantly share code, notes, and snippets.

@tbatchelli
Created April 29, 2014 17:53
Show Gist options
  • Save tbatchelli/11407409 to your computer and use it in GitHub Desktop.
Save tbatchelli/11407409 to your computer and use it in GitHub Desktop.
}
function prompt_func() {
previous_return_value=$?;
# prompt="${TITLEBAR}$BLUE[$RED\w$GREEN$(__git_ps1)$YELLOW$(git_dirty_flag)$BLUE]$COLOR_NONE "
prompt="${TITLEBAR}${BLUE}[${RED}\w${GREEN}$(parse_git_branch)${BLUE}]${COLOR_NONE} "
if test $previous_return_value -eq 0
then
PS1="${prompt}➔ "
else
PS1="${prompt}${RED}➔${COLOR_NONE} "
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment