Static_Rocket@lemmy.worldtoLinux@lemmy.ml•[SOLVED] How do I add autocompletion for my `stfu` command?English
0·
8 months agoFor people using bash that are thinking “how do I do that”:
The bash-complete
package adds the _command
function for recursive completion on commands that accept other commands with their own arguments. It’s what sudo uses last I checked. You can add complete -F _command stfu
to your bashrc to link it to the stfu command.
https://man.archlinux.org/man/bash.1#Programmable_Completion
> Do you like what you've built? Inspirational or condescending? [i/C] █