Improve the output of 'pacman-list-explicit' #539

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants

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 added some commits Jan 25, 2014

@alpha-omega alpha-omega Improve the output of 'pacman-list-explicit'
Package names are bold, and the package version is also shown, in bold
green.

Fix awk's field separator which used to truncate any version or package
description containing a colon.
725e772
@alpha-omega alpha-omega Do not use sudo when listing orphaned packages with pacman a97e8de
Owner

sorin-ionescu commented Jan 25, 2014

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

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?

Owner

sorin-ionescu commented Feb 16, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment