1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00
dindexer/dindexer_cmd_complete.sh.in
King_DuckZ 6991fee7f7 Add support for bash autocomplete in main dindexer
I'm not sure this is something that should be in the code, since
compgen -W "delete locate navigate query scan" loc
would do just the same as
dindexer --printactions=loc
so this is a duplicated functionality. However this commit is
self-contained, so it should be easy to revert it, if needed.
2016-03-16 00:01:29 +01:00

4 lines
97 B
Bash
Executable file

#!/usr/bin/env bash
if [ "$3" == "@bare_name@" ]; then
exec @bare_name@ --printactions=$2
fi