autocompleter
This commit is contained in:
@@ -247,11 +247,11 @@ _get_completer() {
|
||||
local curr_arg
|
||||
curr_arg=${COMP_WORDS[COMP_CWORD]}
|
||||
if [[ $COMP_CWORD -eq 1 ]]; then
|
||||
COMPREPLY=( $(compgen -W "help autocomplete list copy paste read write delete url update upload self" -- $curr_arg ) );
|
||||
COMPREPLY=( $(compgen -W "help autocomplete list copy paste read write delete url short short-del update upload self" -- $curr_arg ) );
|
||||
fi
|
||||
if [[ $COMP_CWORD -eq 2 ]]; then
|
||||
case ${COMP_WORDS[$(( $COMP_CWORD - 1 ))]} in
|
||||
r*|url|d*)
|
||||
r*|url|d*|short*)
|
||||
local remotelist=$( eval FLIP_EXEC simplelist )
|
||||
COMPREPLY=( $(compgen -W "$remotelist" -- $curr_arg ) );
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user