Skip to content

Instantly share code, notes, and snippets.

Last active October 20, 2016 00:01
What would you like to do?
Add SVN status to bash-git-prompt
# Add the following function to
# via
function prompt_callback {
local DIRTY REV=$(svn info 2>/dev/null | grep Revision | sed -e 's/Revision: //')
[ "$REV" ] || return
[ "$(svn st)" ] && DIRTY=' *'
echo "(r$REV$DIRTY)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment