fix(fish-deps): detect tools with command -q so wrappers don't mask missing binaries

Status, install, and update resolved catalog entries with `type -q`,
which also matches wrapper functions that shadow a tool name (rg, rm,
yt-dlp). A shadowed-but-uninstalled tool was reported "installed",
skipped by `install`, and skipped by `update`. Switch these catalog-bin
probes to `command -q`/`command -s` (PATH only). PM/build-tool probes
(cargo, uv, paru, yay, ...) and the fisher check (a fish function) keep
`type -q`.
This commit is contained in:
2026-06-22 00:55:30 -04:00
parent 6bd6436c81
commit 878bc360d9
3 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -26,8 +26,9 @@ function _fish_deps_update
set -l i 1
for bin in $_fdc_bins
# Skip fisher itself (handled above) and tools that aren't installed
if test "$bin" = fisher; or not type -q $bin
# Skip fisher itself (handled above) and tools that aren't installed.
# command -q (not type -q): ignore wrapper functions shadowing the name.
if test "$bin" = fisher; or not command -q $bin
set i (math $i + 1)
continue
end