xbps: actually show all packages in __fish_print_xbps_packages's output.

`xbps-query` actually parses `-Rsl` as `-Rs l`, which means that packages
without the letter "l" in their names or descriptions are not included in
`__fish_print_xbps_packages`'s output.
This commit is contained in:
mhmdanas 2023-03-02 19:01:46 +00:00 committed by Fabian Boehm
parent af49b4d0f8
commit 0f39de2eee

View file

@ -19,7 +19,7 @@ function __fish_print_xbps_packages
end
end
# prints: <package name> Package
xbps-query -Rsl | sed 's/^... \([^ ]*\)-.* .*/\1/; s/$/\t'Package'/' | tee $cache_file
xbps-query -Rs "" | sed 's/^... \([^ ]*\)-.* .*/\1/; s/$/\t'Package'/' | tee $cache_file
return 0
else
xbps-query -l | sed 's/^.. \([^ ]*\)-.* .*/\1/' # TODO: actually put package versions in tab for locally installed packages