mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-07 13:29:49 +00:00
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.
This commit is contained in:
parent
c6b0fe49b5
commit
6991fee7f7
3 changed files with 48 additions and 1 deletions
4
dindexer_cmd_complete.sh.in
Executable file
4
dindexer_cmd_complete.sh.in
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
if [ "$3" == "@bare_name@" ]; then
|
||||
exec @bare_name@ --printactions=$2
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue