From d387b4dc057a9e924cb699d661c32bd3de15d1b0 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 19 May 2026 00:13:28 +0200 Subject: unposted: complete network interfaces for the netif service given new workings for jails --- ChangeLog | 3 +++ Completion/Unix/Command/_init_d | 11 ++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3741c52a3..0455922ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2026-05-18 Oliver Kiddle + * unposted: Completion/Unix/Command/_init_d: complete network + interfaces for the netif service given new workings for jails + * Nick Price: github #166: Completion/Unix/Command/_init_d, Completion/BSD/Command/_jail, Completion/BSD/Type/_jails: complete names of non-running FreeBSD jails diff --git a/Completion/Unix/Command/_init_d b/Completion/Unix/Command/_init_d index 939ef102e..7b3c8ee41 100644 --- a/Completion/Unix/Command/_init_d +++ b/Completion/Unix/Command/_init_d @@ -129,13 +129,10 @@ _arguments -C -s -A "-*" $flags \ '*:: :->svcargs' && ret=0 if [[ $state == svcargs ]]; then - case $svcname in - jail) - case $line[1] in - *stop|*restart|console|status) _jails && ret=0 ;; - *) _jails -c && ret=0 ;; - esac - ;; + case $svcname:$line[1] in + jail:(*stop|*restart|console|status)) _jails && ret=0 ;; + jail:*) _jails -c && ret=0 ;; + netif:*) _net_interfaces && ret=0 ;; *) _call_function ret _init_d-$svcname $line[1] ;; -- cgit v1.3.1