doas tab completion

2024-07-29 Thread Robert Palm
Hi, wonder how I can get TAB completion in the shell when using doas ... Do I need to add something to .profile ? Thank you.

Re: sndiod: Cannot change bit depth and sample rate

2024-07-29 Thread Alexandre Ratchov
On Sun, Jul 28, 2024 at 11:39:17PM +0200, rfab...@mhsmail.ch wrote: > > `$ rcctl get sndiod` > As expected: > > sndiod_class=daemon > sndiod_execdir= > sndiod_flags=-f rsnd/1 -m play -e s24 -r 96000 The -r and -e options are device properties, so they must precede the -f option that adds the

Re: doas tab completion

2024-07-29 Thread Jan Stary
On Jul 29 09:47:39, develo...@robert-palm.de wrote: > wonder how I can get TAB completion in the shell when using doas ... tab completion is not specific to any command.

Re: doas tab completion

2024-07-29 Thread Robert Palm
Zitat von Jan Stary : On Jul 29 09:47:39, develo...@robert-palm.de wrote: wonder how I can get TAB completion in the shell when using doas ... tab completion is not specific to any command. Hm, it does work, e.g. when I start typing $sysu it shows me the commands starting with "sysu" B

Re: doas tab completion

2024-07-29 Thread Jan Stary
On Jul 29 11:44:32, develo...@robert-palm.de wrote: > > On Jul 29 09:47:39, develo...@robert-palm.de wrote: > > > wonder how I can get TAB completion in the shell when using doas ... echo $SHELL Different shells do (or don't) this differently. > > tab completion is not specific to any command. >

Re: doas tab completion

2024-07-29 Thread Robert Palm
Zitat von Jan Stary : On Jul 29 11:44:32, develo...@robert-palm.de wrote: > On Jul 29 09:47:39, develo...@robert-palm.de wrote: > > wonder how I can get TAB completion in the shell when using doas ... echo $SHELL Different shells do (or don't) this differently. > tab completion is not spe

Re: doas tab completion

2024-07-29 Thread Kirill A . Korinsky
On Mon, 29 Jul 2024 09:47:39 +0200, Robert Palm wrote: > > wonder how I can get TAB completion in the shell when using doas ... > > Do I need to add something to .profile ? > Depends on the shell you are using. Assuming you are using BASH, you will probably get what you want by: complete -

[solved] sndiod: Cannot change bit depth and sample rate

2024-07-29 Thread rfabris
Dear Alexandre Am 2024-07-29 09:59, schrieb Alexandre Ratchov: The -r and -e options are device properties, so they must precede the -f option that adds the device. Try this: rcctl set sndiod flags -e s24 -r 96000 -f rsnd/1 -m play This is because there may be multiple devices with different p

Re: doas tab completion

2024-07-29 Thread Marcus MERIGHI
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). W

Re: doas tab completion

2024-07-29 Thread Robert Palm
Quoting Marcus MERIGHI : 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

Re: doas tab completion

2024-07-29 Thread Florian Obser
On 2024-07-29 12:05 +02, Jan Stary wrote: > On Jul 29 11:44:32, develo...@robert-palm.de wrote: >> complete -cf doas >> >> but I cannot figure out how to do this for ksh. >> in .kshrc: set -A complete_doas_1 -- $(ls /sbin /usr/sbin /bin /usr/bin /usr/X11R6/bin \ /usr/local/sbin /usr/local/

Re: doas tab completion

2024-07-29 Thread Stuart Henderson
On 2024-07-29, Robert Palm wrote: > > Hi, > > wonder how I can get TAB completion in the shell when using doas ... > > Do I need to add something to .profile ? pkg_add dmenu, then you can add this: set -A complete_doas `dmenu_path` (note it will not update automatically if a new program is inst

Re: doas tab completion

2024-07-29 Thread Robert Palm
Thanks a lot for sharing all this great solutions! Am 29. Juli 2024, 17:37, um 17:37, Stuart Henderson schrieb: >On 2024-07-29, Robert Palm wrote: >> >> Hi, >> >> wonder how I can get TAB completion in the shell when using doas ... >> >> Do I need to add something to .profile ? > >pkg_add dmenu

Re: doas tab completion

2024-07-29 Thread Alexander Hall
In this specific case, I believe $ alias doas='doas ' # Note the space might have done the trick as well, for ksh at least. /Alexander On July 29, 2024 7:30:57 PM GMT+02:00, Robert Palm wrote: >Thanks a lot for sharing all this great solutions! > >Am 29. Juli 2024, 17:37, um 17:37, Stuart He

Re: doas tab completion

2024-07-29 Thread Jason McIntyre
On Tue, Jul 30, 2024 at 12:42:04AM +0200, Alexander Hall wrote: > In this specific case, I believe > > $ alias doas='doas ' # Note the space > > might have done the trick as well, for ksh at least. > > /Alexander > is that correct? as far as i know, adding a space after an alias is used to ge