Source Control URL in the Cygwin Bash Prompt
From: Hensley, Richard <Richard.Hensley_at_McKesson.com>
Date: 2003-02-13 21:10:36 CET
I needed to know which source control url I was in when I was in a
The script is used by doing the following:
in your Bash startup script add (it's important to escape the
export PROMPT_COMMAND="export SVNURL=\`/path/to/script/svn_findurl.pl`"
add $SVNURL to your $PS1 value
from my .bashrc
export PROMPT_COMMAND="export SVNURL=\`svn_parseinfo.pl\`"
export PS1='\[\033]0;\w\007\033[32m\]\A \[\033[33m\w\033[0m\] $SVNURL
put the script somewhere on your path.
The script is
#!/bin/perl
Richard
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.