Last active
June 5, 2019 01:40
-
-
Save shreve/0922ca70d1b4677c877c694b721d2456 to your computer and use it in GitHub Desktop.
Fish builtin cd patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function cd | |
| set paths $CDPATH ./ | |
| for location in $paths | |
| if test -d $location$argv | |
| builtin cd $location$argv | |
| return | |
| end | |
| end | |
| builtin cd $argv | |
| end |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found an issue in fish v3 that was causing a lot of crashes. (fish-shell/fish-shell#5887)
This cd function is a workaround until version 3.1.0 is published.