Does Powershell have a feature like Bash's "autocd" shopt?

1.2k Views Asked by At

Does powershell have a feature like bash's autocd shopt?

If you enable that in bash you can navigate into folders by typing out their name.

For example if you have a folder called "foo" in your current directory and you type out foo it would execute cd foo instead.

1

There are 1 best solutions below

1
Nick Cox On BEST ANSWER

If anyone's still looking for this, I've put an implementation here and on the PowerShell Gallery. It includes several other niceties from bash such as CD_PATH, improved tab completion for directory paths and cd-, cd+.