mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Shorter perl one-liner in _gpgconf
This commit is contained in:
+1
-2
@@ -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]')
|
||||
|
||||
Reference in New Issue
Block a user