mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 01:17:59 +00:00
725e7720de
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.
25 lines
424 B
Plaintext
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
|
|
}
|
|
'
|
|
|