George Mauer
George Mauer

Reputation: 122052

Good directory jumper for Powershell?

I just heard about the (almost impossible to google) z directory jumper for bash

Does anyone know of a powershell equivalent, or anything that even approaches the functionality?

Upvotes: 6

Views: 1833

Answers (3)

Lars Truijens
Lars Truijens

Reputation: 43587

For PowerShell there is Jump-Location and Z. You might also want to check out Go.

Upvotes: 4

manojlds
manojlds

Reputation: 301097

I had written cdposh and poshmarks which might be useful for you.

cdposh lets you specify environment variable cdpath and lets you switch directly to a directory on the cdpath (much like path for executables)

poshmarks lets you bookmark and quickly go to directories.

I will see if I can implement z for Powershell

Update: A very early implementation of z for Powershell - posz

Upvotes: 4

Keith Hill
Keith Hill

Reputation: 201632

The PowerShell Community Extensions has a nested module that will override your CD function and then provide you with a history list of dirs you've navigated to. To can move forwards and backwards through this list or jump to a particular entry e.g.:

6# cd

     # Directory Stack:
   --- ----------------
     0 C:\Users\hillr
     1 C:\Temp
     2 C:\Windows
->   3 C:\Windows\System32

7# cd -
C:\Windows
8# cd +
C:\Windows\System32
9# cd -1
C:\Temp

It's not quite as fancy as frequency based directory jumper but it is surprisingly handy.

Upvotes: 1

Related Questions