You are not logged in.
Pages: 1
Just thought would post this here as i find it peculiar behavior.
I dont have sudo installed and use doas lately. I found that if I create an alias in .bashrc such as alias sudo="doas" i can get the full functionality of sudo bash completion as long as i keep using the sudo command in the terminal. Its good i like it but it begs the question can doas be implemented in bash-completion as well?
Workaround is this semi solution.
as root
cp /usr/share/bash-completion/completions/sudo /usr/share/bash-completion/completions/doas
then replace all instance of sudo in the doas file.
Source: https://github.com/scop/bash-completion/issues/505
Edited: Fixed alias command.
Last edited by soren (2023-06-30 09:01:58)
Offline
Great!
I'd call that a "Freedom Hack", because you have restored your freedom to use doas.
Thank you for sharing.
pic from 1993, new guitar day.
Offline
Great!
I'd call that a "Freedom Hack", because you have restored your freedom to use doas.
Thank you for sharing.
Was not sure where to put this. At first it was a question then i answered my own question. Maybe the mods could transfer this thread to "Freedom Hacks"? http://dev1galaxy.org/viewforum.php?id=25
And you are welcome.
Last edited by soren (2023-06-30 09:00:04)
Offline
I'm using https://github.com/nutta-git/bash-compl โฆ tions/doas and so far it behaves as expected:
~$ doas aptitude --<tab><tab>
--assume-yes --no-gui --show-versions --verbose
--display-format --prompt --simulate --width
--download-only --quiet --sort --without-recommends
--help --show-deps --target-release --with-recommends
~$ doas aptitude --โ
*๐๐๐๐๐๐!*
Online
Thanks Yeti, i will try that script.
Offline
Pages: 1