Compare commits
2 commits
8c38272b10
...
331b9b8f18
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | 331b9b8f18 | ||
Dmitry Voronin | 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()
|
||||
{
|
||||
local commands="$@"
|
||||
|
|
|
@ -25,3 +25,11 @@ checksum()
|
|||
echo "supported actions: new (n), check (c)."
|
||||
return 1
|
||||
}
|
||||
|
||||
# autocomplete.
|
||||
_checksum()
|
||||
{
|
||||
autocomplete "{new,check}"
|
||||
}
|
||||
|
||||
complete -F _checksum checksum
|
||||
|
|
Reference in a new issue