aboutsummaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/includes/functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/zsh/includes/functions.zsh b/.config/zsh/includes/functions.zsh
index 6f08e59..afe4915 100644
--- a/.config/zsh/includes/functions.zsh
+++ b/.config/zsh/includes/functions.zsh
@@ -410,6 +410,6 @@ function pkg_keyid_lookup() {
return 1
fi
- pacman -Sii | grep $key_id -B20 | grep Name |awk '{print $(NF)}'
+ pacman -Sii | awk -v signature=$key_id 'BEGIN {RS=""; FS="\n"} {if ($0 ~ signature && $2 ~ /Name/) {split($2, m, ":"); gsub(/ /, "", m[2]); print m[2]}}'
}
# FUNCTIONS >