Tuesday, July 30, 2024

Re: doas tab completion

On Mon, 29 Jul 2024 17:32:06 +0200,
Florian Obser <florian@openbsd.org> wrote:
>
> in .kshrc:
>
> set -A complete_doas_1 -- $(ls /sbin /usr/sbin /bin /usr/bin /usr/X11R6/bin \
> /usr/local/sbin /usr/local/bin)
>

I think this way is cleaner, isn't it?

set -A complete_doas_1 -- $(echo $PATH | tr ':' '\n' | xargs ls)

--
wbr, Kirill

No comments:

Post a Comment