core/cli: autocomplete module names
This commit is contained in:
parent
8b01674fed
commit
6185942f78
4 changed files with 21 additions and 11 deletions
|
@ -8,10 +8,10 @@ _hpi_completion() {
|
|||
IFS=',' read type value <<< "$completion"
|
||||
|
||||
if [[ $type == 'dir' ]]; then
|
||||
COMREPLY=()
|
||||
COMPREPLY=()
|
||||
compopt -o dirnames
|
||||
elif [[ $type == 'file' ]]; then
|
||||
COMREPLY=()
|
||||
COMPREPLY=()
|
||||
compopt -o default
|
||||
elif [[ $type == 'plain' ]]; then
|
||||
COMPREPLY+=($value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue