Search code examples
bashpowershellcommand-lineshopt

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


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.


Solution

  • 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+.