Score:0

Need to edit, improve the auto completion on sudo

cn flag

How can we improve the auto completion on sudo, as it should complete second argument, i.e. the rooted executable's first argument, with items of the current working directory files instead of that of executable files in PATH

The problem is can find this Bash completion only few of the sudo lines under /usr/share/bash-completion

in bash_completion: ... ...

_root_command()
{
    local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
    local root_command=$1
    _command
}
complete -F _root_command fakeroot gksu gksudo kdesudo really

and in completions/sudo line 54:

complete -F _sudo sudo sudoedit

Please one so expert on the Bash completion help

hr flag
Can you provide a specific example? I can't reproduce this issue with (for example) `sudo ls <TAB>`
itil nonok avatar
cn flag
not get annoyed: $ sudo tar <tab> ... ? ...just flow all Path executable files
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.