4 ms·
What’s the dirs -v, pushd and popd equivalent in PS?
by 0x445442 3y ago
What’s the dirs -v, pushd and popd equivalent in PS?
- shortrounddev 3y agoWhat do those do
- metaltyphoon 3y agoKeep a stack of dirs where u can jump very quickly into.
- cyberbanjo 3y agopopd and pushd are aliases for Pop-Location and Push-Location, so they are the PowerShell equivalent. Unsure about dir -v. dir itself is an alias for Get-ChildItem, but I don't know about -v (natural sort of version number)
- 0x445442 3y agodirs -v presents a numbered stack of directories. Pushd doesn’t just function on one directory but also takes in a number pointing to a directory on the stack. Nothing like this exists out of the box for PS and it’s one of the most productive features in Bash.