`--files` is slow
[user@box ~]$ time pkgfile -bv -- "fish"
extra/fish 3.7.0-1 /usr/bin/fish
real 0m0.426s
user 0m0.391s
sys 0m0.043s
[user@box ~]$ time pacman -Fxq "bin\/fish"
extra/fish
real 0m6.696s
user 0m6.321s
sys 0m0.345s
[user@box ~]$ pacman --version
.--. Pacman v6.1.0 - libalpm v14.0.0
/ _.-' .-. .-. .-. Copyright (C) 2006-2024 Pacman Development Team
\ '-. '-' '-' '-' Copyright (C) 2002-2006 Judd Vinet
'--'
This program may be freely redistributed under
the terms of the GNU General Public License.
It would be nice to be able to use pacman -F
in bash's command_not_found_handle()
, but maybe this is too slow for that.