Originally Posted by palmtree5
Ok, having issues with bash completion. I want it to complete on arguments for a given command. It doesn't do that.
I type sudo pacman --sy<TAB> and I want it to complete to --sync
I know this is the default behavior in Ubuntu (which is one thing I actually like having) but I'm on Arch and only have tab completion to a certain extent (completing commands, showing what package contains a command if I try to run something that isn't installed, etc)
Not sure, but look at importing /etc/bash_completion.d from an Ubuntu distribution.
I think all they've done is overloaded the common commands using complete and compgen.
Google for bash complete compgen to see scripts for adding options for your own commands.
I never knew argument completion existed. I've only used it for files and paths lol.