prezto
prezto copied to clipboard
Improve the output of 'pacman-list-explicit'
Package names are bold, and the package version is also shown, in bold green.
Also, fix awk's field separator which used to truncate any version or package description containing a colon.
And there's no need to use sudo when listing orphans, since it's just a query.
Perhaps check if the user wants colours.
Well, I find the colorless output quite difficult to read, that's why I tried to "mimic" pacman's own colors:
# pacman -Qe
But obviously the colors aren't kept when piping to awk, because the output is not going to the console. It could be possible to use an alias (for pacman --query --explicit
) instead of the function, and pacman would use color only if it's enabled in /etc/pacman.conf
, but it wouldn't show the package description.
Perhaps check if the user wants colours.
How?
Check the pacman README.md file on how to check if colours or enabled are not.