Svn and Git enabled PowerShell prompt

After reading this post and integrating it into my $PROFILE script I marveled at the nice git repository prompt.

A few days later I learned, that we will be using subversion on our next project. To remedy my sadness, my colleague Doug Finke pointed out his svn prompt.

That cheered me up, but since I didn’t want to keep changing my script every time I work with either git or subversion repositories, I combined both of them into a prompt, that gives me information about added(+), modified(~), deleted(-) and untracked(!) files.

I also applied few tweaks to make them more consistent.

Here the screenshots for the no repo, git repo and svn repo prompts:

You can find the script here.

In order for the git part to work you will need this gitutils file.

Amend: In the meantime I changed/improved the script a bit, so the prompts will look somewhat different than in the picture.

Advertisements
  1. Svn and Git enabled Power Shell prompt » Lab49 Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: