💥 Make auto-cd a interactive feature rather than a library one
If a command fail, try to cd before outputing the error.
Issues fixed by this:
- Trailing slashes are no longer necessary
- If a binary and a folder conflicts, the binary has priority
-cd to the old pwd
Breaking change: auto-cd no longer works in scripts. This is however a feature intended for interactive use only, so it arguably should not cause problem and IMO this is in fact an improvement.
Fix #892 (closed)