diff options
| author | Oliver Kiddle <opk@zsh.org> | 2026-05-19 00:13:28 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2026-05-19 00:17:09 +0200 |
| commit | d387b4dc057a9e924cb699d661c32bd3de15d1b0 (patch) | |
| tree | 84c84e7bd83ef889bda9a98e660468be53ca55e4 /Completion/Unix/Command | |
| parent | github #166: complete names of non-running FreeBSD jails (diff) | |
| download | zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.tar zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.tar.gz zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.tar.bz2 zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.tar.lz zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.tar.xz zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.tar.zst zsh-d387b4dc057a9e924cb699d661c32bd3de15d1b0.zip | |
unposted: complete network interfaces for the netif service given new workings for jails
Diffstat (limited to 'Completion/Unix/Command')
| -rw-r--r-- | Completion/Unix/Command/_init_d | 11 |
1 files changed, 4 insertions, 7 deletions
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] ;; |
