about summary refs log tree commit diff
path: root/Completion/Unix/Command/_getent
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-11-22 00:07:37 +0100
committerOliver Kiddle <opk@zsh.org>2023-11-22 00:07:37 +0100
commit6aa15f57fd5bee298c8320dab19d167dac3d46ed (patch)
treef0559c7140c34ac7aae7772a9b8d9f7debe7f8d9 /Completion/Unix/Command/_getent
parentfcf080ab578de00c799eb287ef8bdc201c313fee (diff)
downloadzsh-6aa15f57fd5bee298c8320dab19d167dac3d46ed.tar.gz
zsh-6aa15f57fd5bee298c8320dab19d167dac3d46ed.tar.xz
zsh-6aa15f57fd5bee298c8320dab19d167dac3d46ed.zip
52315: completion options update
Diffstat (limited to 'Completion/Unix/Command/_getent')
-rw-r--r--Completion/Unix/Command/_getent3
1 files changed, 2 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_getent b/Completion/Unix/Command/_getent
index b96852db3..5604e526e 100644
--- a/Completion/Unix/Command/_getent
+++ b/Completion/Unix/Command/_getent
@@ -8,6 +8,7 @@ typeset -A opt_args
 if _pick_variant -r is_gnu gnu='(Free Soft|GNU|GLIBC|Gentoo)' unix --version; then
   args+=(
     '(- 1 *)'{-\?,--help}'[display help information]'
+    '(-A --no-addrconfig)'{-A,--no-addrconfig}"[don't filter out unsupported IPv4/IPv6 addresses (with ahosts*)]"
     '(- 1 *)--usage[display a short usage message]'
     '(- 1 *)'{-V,--version}'[display version information]'
     '*'{-s+,--service=}'[specify service configuration to use]: :->services'
@@ -23,7 +24,7 @@ case $state in
   services)
     # @todo GNU getent supports both `-s svc` and `-s db:svc`; we only complete
     # the former here
-    services=( {,/usr}/lib/{,*-linux-gnu/}libnss_*(N-.:fr:t:s/libnss_//) )
+    services=( {,/usr}/lib{,64}/{,*-linux-gnu/}libnss_*(N-.:fr:t:s/libnss_//) )
     _wanted services expl 'service or database:service' \
       compadd ${(u)services%-*} \
     && ret=0