1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 02:18:00 +00:00

Improve AWK code readability, remove highlighting

This commit is contained in:
Sorin Ionescu 2012-06-30 15:54:51 -04:00
parent e3b6b5ab30
commit d54211832a

View File

@ -6,6 +6,17 @@
# Sorin Ionescu <sorin.ionescu@gmail.com> # Sorin Ionescu <sorin.ionescu@gmail.com>
# #
sudo pacman --query --explicit --info $(pacman --query --upgrades | cut -d' ' -f 1) \ sudo pacman --query --explicit --info \
| awk ' BEGIN {FS=":"}/^Name/{printf("\033[1;36m%s\033[1;37m", $2)}/^Description/{print $2}' $(pacman --query --upgrades | cut -d' ' -f 1) \
| awk '
BEGIN {
FS=":"
}
/^Name/ {
print $2
}
/^Description/ {
print $2
}
'