1
0
Fork 0

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.
pull/539-pacman-list-explicit
OmeGa 11 years ago
parent af003d83c5
commit 725e7720de

@ -9,10 +9,13 @@
pacman --query --explicit --info \ pacman --query --explicit --info \
| awk ' | awk '
BEGIN { BEGIN {
FS=":" FS=" : "
} }
/^Name/ { /^Name/ {
print $2 printf "\033[0;01m" $2 "\033[0m"
}
/^Version/ {
print " \033[1;32m" $2 "\033[0m"
} }
/^Description/ { /^Description/ {
print $2 print $2

Loading…
Cancel
Save