I want to create an alias for cd .. as .. in powershell.
I've tried to following variations but to no avail.
Set-Alias ".." "cd .."
Set-Alias ".." { set-location "cd .." }
Set-Alias ".." { set-location ".." }
It would have to be a function, since it has arguments:
function .. { set-location .. }
There's actually a function already called "cd.." with no spaces, to mimic cmd. So you could also do:
set-alias .. cd..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With