Condensing/abstracting the path shown on each line in PowerShell

Posted by kRON on Super User See other posts from Super User or by kRON
Published on 2010-03-12T22:21:02Z Indexed on 2010/03/12 22:27 UTC
Read the original article Hit count: 240

Filed under:

I've started using virtualenv for my Python projects. Since the working directory for my projects is now deeply nested, the path has started to take up half of my screen!

Is it possible to somehow have PowerShell condense the path to the current working directory, from something like C:\Users\kRON\Desktop\Current work\Python\dsp\src to C:\Users\kRON\Deskto~1\Curren~2\Python\dsp\src or, better yet, to match C:\Users\kRON\Desktop\Current work\Python\and just replace it with ~python\?

© Super User or respective owner

Related posts about powershell