prezto icon indicating copy to clipboard operation
prezto copied to clipboard

Improve the output of 'pacman-list-explicit'

Open alpha-omega opened this issue 11 years ago • 3 comments

Package names are bold, and the package version is also shown, in bold green.

screenshot_2014-01-13_01 16 14

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.

alpha-omega avatar Jan 25 '14 23:01 alpha-omega

Perhaps check if the user wants colours.

sorin-ionescu avatar Jan 25 '14 23:01 sorin-ionescu

Well, I find the colorless output quite difficult to read, that's why I tried to "mimic" pacman's own colors:

# pacman -Qe

screenshot from 2014-01-25 19 45 19

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?

alpha-omega avatar Jan 26 '14 02:01 alpha-omega

Check the pacman README.md file on how to check if colours or enabled are not.

sorin-ionescu avatar Feb 16 '14 23:02 sorin-ionescu