Skip to main content

PowerShell from SourceTree as a custom action

Step 1:
Create a ps.bat file with one line:

start powershell

Save this file in an appropriate location. I saved mine to:
C:\CustomCommands




Step 2:
Add a custom action to SourceTree.

You do this by going to

Tools -> Options -> Custom Actions




Click the 'Add' button and you will get another Window.

On the 'Menu caption' type an identifier for PowerShell and on 'Script to run' navigate to the script you made in step 1 then click 'OK' and exit from the 'Options' Window.



Step 3:
Test PowerShell.









Comments

  1. start powershell -Command "start powershell"

    This command works better: source tree would not hang waiting for you to close the shell

    ReplyDelete

Post a Comment

Popular posts from this blog

My first time speaking at a conference

Since time immemorial we humans have valued the art of public speaking. Today, I want to share with you my experiences in speaking at conferences for the first time. Recently, I spoke at both DDD Melbourne and DDD Perth. Both of which were positive experiences that I learnt a lot in.


from zero to production in eighty days

When I mean zero, I literally mean zero. A brand new project, a PO that's new to IT, no existing processes in place and a small team of four including myself and the PO.

The departmental organisation we were working for doesn't have any developers, scrum masters, product owners working for them. Everything they did was either done by another department or outsourced completely.

This is a story how we went from zero to production in eighty days.

Context and agile practices

At times we have competing responsibilities - ship code or don't ship it because of a small edge case bug; put pressure on our team or make the business happy; coach our friends or write code.

This is a normal part of our everyday professional lives, and it's important to strike a balance that will help us in the future, but also deliver in the short-term.