mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-24 21:24:25 +08:00

This was present in the C++ version for command, though never for type. Checking over all elements of PATH can be slow on some platforms eg WSL2, so only do that when used with `--all`. Based on discussion in https://github.com/fish-shell/fish-shell/pull/9856