Archive

Archive for February, 2014

Abbreviated Powershell prompt

February 18, 2014 Leave a comment

When working with deep folder structures the prompt starts to eat more and more space on the screen – leaving less and less space for your input and commands. I find this annoying. Not terribly, but a bit. Luckily the prompt, like most things in Powershell, can be customized. And it is simple too. Just define a new function called Prompt and it will override the build-in.

This is my abbreviated prompt in action:

image

Here is the code:

https://gist.github.com/codecontemplator/9078955#file-powershell-abbreviated-prompt

Categories: Uncategorized