Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How can I avoid completion using chkconfig on RHEL10?



It turns out to be more complicated than that.  This machine can’t really even run service.  I mean, if I ask it a very specific and well-formed question it’s okay:


But, if I try to do something like you mention below, it goes “less well”.  


Apparently there is an “initscripts” package that will install  these things, and I don’t know why the “filebeat” package is the only thing still supplying an init.d script.  But.  😉

So I’m not sure what to suggest with the _services completer, but a more specific and/or complicated solution may be needed.

I’ll try to cons up a chkconfig() function as you suggested, with what I have that works.

Thanks all.

-Chris

From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
Date: Tuesday, 24 February 2026 at 13:32
To: Chris Ross (cross2) <cross2@xxxxxxxxx>
Cc: zsh-users@xxxxxxx <zsh-users@xxxxxxx>, cross+zsh@xxxxxxxxxx <cross+zsh@xxxxxxxxxx>
Subject: Re: How can I avoid completion using chkconfig on RHEL10?

On Tue, Feb 24, 2026 at 10:12 AM Chris Ross (cross2) <cross2@xxxxxxxxx> wrote:
>
> Anyway.  Has this changed already in more recent versions, and if not, I think it should.  It should at least confirm that chkconfig is an installed command before invoking it.

The _services completer hasn't been updated since 2012, so it probably
is due for some maintenance.

This is a poor but possibly useful substitute in the meantime:
chkconfig() { service --status-all | awk '{print $4}' }

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Messages sorted by: Reverse Date, Date, Thread, Author