Quoting Marcus MERIGHI <mcmer-open...@tor.at>:

Hello Robert,

develo...@robert-palm.de (Robert Palm), 2024.07.29 (Mon) 09:47 (CEST):
wonder how I can get TAB completion in the shell when using doas ...
Do I need to add something to .profile ?

as I understand your other messages in this thread you are looking for a
solution for ksh(1).

What you are looking for is "set -A" (or set +A).

Example from my .kshrc:

        set -A complete_ifstat_1 -- iwm0 em0 ure0 athn0 umb0 wg7
        set -A complete_ifstat_2 -- up down

But, unless you are running a very short list of commands with doas, this
will become a fairly long list.

Marcus

Hi Marcus!

Many thanks for your suggestion. You nailed it :)

Included now as a starter

set -A complete_doas_1 -- sysupgrade pkg_add

After reloading with . ~/.kshrc it does exactly what I wanted.

Cool.



Reply via email to