mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-27 00:28:57 +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