Skip to content

Instantly share code, notes, and snippets.

@shreve
Last active June 5, 2019 01:40
Show Gist options
  • Select an option

  • Save shreve/0922ca70d1b4677c877c694b721d2456 to your computer and use it in GitHub Desktop.

Select an option

Save shreve/0922ca70d1b4677c877c694b721d2456 to your computer and use it in GitHub Desktop.
Fish builtin cd patch
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
@shreve
Copy link
Author

shreve commented Jun 5, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment