Setting up zoxide in PowerShell (pwsh)
-
Install zoxide If you use Scoop:
scoop install zoxideOr place the binary in a custom directory, e.g.
C:\Users\David.Wei\bin. -
Add zoxide to PATH (if not already)
[Environment]::SetEnvironmentVariable( "Path", $env:Path + ";C:\Users\David.Wei\bin", "User" ) -
Initialize zoxide in PowerShell profile Find or create your profile:
New-Item -ItemType File -Path $PROFILE -ForceEdit it and add:
Invoke-Expression (& { (zoxide init powershell --cmd j | Out-String) }) -
Restart PowerShell Use
j <dir>to jump quickly between directories.
That’s all.