aboutsummaryrefslogtreecommitdiffstats
path: root/src/_gpgconf
diff options
context:
space:
mode:
authorScore_Under <seejay.11@gmail.com>2021-02-04 14:45:30 +0000
committerScore_Under <seejay.11@gmail.com>2021-02-04 14:45:30 +0000
commitab80ddd379777ec2ad3234bd5d0eddef04eb95c2 (patch)
treea8f12ac3bb60b99b2a582f70a801bbb170e0087a /src/_gpgconf
parentAdd missing homedir option to _gpgconf (diff)
downloadzsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.tar
zsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.tar.gz
zsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.tar.bz2
zsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.tar.lz
zsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.tar.xz
zsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.tar.zst
zsh-completions-ab80ddd379777ec2ad3234bd5d0eddef04eb95c2.zip
Shorter perl one-liner in _gpgconf
Diffstat (limited to 'src/_gpgconf')
-rw-r--r--src/_gpgconf3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/_gpgconf b/src/_gpgconf
index f8254a5..5fe8852 100644
--- a/src/_gpgconf
+++ b/src/_gpgconf
@@ -8,8 +8,7 @@
_gpgconf_component() {
local values=(
- "${(@f)$(gpgconf --list-components \
- | perl -lne 'my ($name, $desc, $x) = split /:/; print "${name}[$desc]"')}"
+ "${(@f)$(gpgconf --list-components | perl -F: -ale 'print "${F[0]}[$F[1]]"')}"
)
if [ "${action[2]}" = all ]; then
values+=('all[All daemon components]')