sgbc pravi autocomplete pravila na osnovu help prikaza komandi (napr: wget --help). Nisam ga testirao, ali deluje zanimljivo.
http://forums.gentoo.org/viewtopic-t-904290.htmlI've written quite a few personnal bash completions and have realised that even if some completions can only be specific to one given command(to be really usefull) but most of the time they're easy: they have to deal with easy stuff like short&long options optionally taking a parameter which itself can sometime be completed. So I wrote a generic, yet somewhat extensible, bash completion.
Once you have it installed, here is how you can start using it for your amazing new script:
And that's it! You can enjoy your TAB key with it too:)Code: Select all
add_sgbc_for command
For those wondering, there's no magic here, it just uses the help message provided it's sufficiently formated.
https://gitorious.org/sgbc