Open Scupake opened 3 years ago
Have you asked if upstream doas project would be interested int creating or maintaining one?
No, I haven't, I guess I could open an issue for OpenDoas, which is the version used in Void, Debian, Ubuntu and Gentoo.
Can someone please add support for
doas
?
Just copy sudo
file from completions
directory and rename it to doas
. Then search and replace all occurrences of sudo
in this file with doas
.
Wait for a proper solution :)
That helps some, but not with completion for apt in Debian. Do you have an idea how to work around that?
Hello. I'm on Debian as well. Completion for apt commands work fine.
This is my /etc/doas.conf:
permit keepenv nopass USER as root
Without "keepenv" you can't start GUI applications. But even with this, there are some errors about DBUS and others. So please do not launch GUIs as it can break your system.
Also on a second line of doas completion file, add this:
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
To fix "command not found" error for programs in /usr/sbin.
Sorry, I can not help you more than this. We have to wait when somebody implements it.
Thanks, that helped!
Opendoas' maintainer has said in a reddit comment that they won't add any feature unless it is in upstream doas, which is unlikely to add bash support because iirc they use ksh on openbsd
OpenBSD has bash-completion in their ports tree, https://openports.se/shells/bash-completion
Ref. PR https://github.com/Duncaen/OpenDoas/pull/84 in OpenDoas
you can get completion by symlinking doas as sudo if you only use doas example : doas ln -s /usr/bin/doas $HOME/.local/bin/sudo
Can someone please add support for
doas
?