bash : add usage info for autocomplete.
This commit is contained in:
parent
8c38272b10
commit
ec49e34533
|
@ -1,3 +1,6 @@
|
||||||
|
# bash autocomplete.
|
||||||
|
# usage: complete -F _foo foo
|
||||||
|
# there are also options like -o nospace. see man for more info.
|
||||||
autocomplete()
|
autocomplete()
|
||||||
{
|
{
|
||||||
local commands="$@"
|
local commands="$@"
|
||||||
|
|
Reference in a new issue