From 725e7720dee34dc904eea9f2646d9bc0bbfcf9ab Mon Sep 17 00:00:00 2001 From: OmeGa Date: Sat, 25 Jan 2014 16:36:49 -0600 Subject: [PATCH] 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. --- modules/pacman/functions/pacman-list-explicit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/pacman/functions/pacman-list-explicit b/modules/pacman/functions/pacman-list-explicit index 7359bfed..78dd7b6e 100644 --- a/modules/pacman/functions/pacman-list-explicit +++ b/modules/pacman/functions/pacman-list-explicit @@ -9,10 +9,13 @@ pacman --query --explicit --info \ | awk ' BEGIN { - FS=":" + FS=" : " } /^Name/ { - print $2 + printf "\033[0;01m" $2 "\033[0m" + } + /^Version/ { + print " \033[1;32m" $2 "\033[0m" } /^Description/ { print $2