Re:“Why I develop on Windows”
by 0x445442 on Friday April 28, 2023 @07:13PM
(#35748334)
What’s the dirs -v, pushd and popd equivalent in PS?
[ Parent
| on HN ]
Re:“Why I develop on Windows”
by cyberbanjo on Friday April 28, 2023 @07:37PM
(#35748499)
popd 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)
dirs -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.
Re:“Why I develop on Windows”
by shortrounddev on Friday April 28, 2023 @07:26PM
(#35748421)
What do those do
Re:“Why I develop on Windows”
by metaltyphoon on Saturday April 29, 2023 @08:12AM
(#35752175)
Keep a stack of dirs where u can jump very quickly into.