> On 10 Jul 2025, at 19:14, Maxim Cournoyer <ma...@guixotic.coop> wrote: > Maybe i could run this once and cache the result? I think I've seen this > pattern before for bash completion.
With sudo? I'd find it surprising to the point of annoying if hitting <Tab> popped up a password prompt that I can't escape with muscle memory. Even once. 'herd status' is much faster than some other bash completion commands, so caching for performance shouldn't be needed. [My uninvited opinion which nobody asked for would be that's it's better for the completion script to sniff the world-readable list of current-system services than to actually query the running root Shepherd. Can be out of sync, but good enough for bash completion.]