I usually use a bash shell and will set 'cd ..
' to 'up
' just to save myself 3 keystrokes.
In PowerShell when I try:
Set-Alias -Name up -Value "cd .."
or without the quotes
Set-Alias -Name up -Value cd ..
This does not work.
The question is, how do I get the same functionality of cd .. in an alias to use in PowerShell?
*spoiler: I stumbled upon the solution by experimenting, I'm only posting this question because I can not find this answer anywhere else online. I'll post a more detailed explanation as an answer but the solution is to remove the space:
Set-Alias -Name up -Value cd..