1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 05:38:01 +00:00
prezto/modules/pacman/functions/pacman-list-explicit
OmeGa 725e7720de 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.
2014-01-25 16:36:49 -06:00

25 lines
424 B
Plaintext

#
# Lists explicitly installed Pacman packages.
#
# Authors:
# Benjamin Boudreau <dreurmail@gmail.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
pacman --query --explicit --info \
| awk '
BEGIN {
FS=" : "
}
/^Name/ {
printf "\033[0;01m" $2 "\033[0m"
}
/^Version/ {
print " \033[1;32m" $2 "\033[0m"
}
/^Description/ {
print $2
}
'