From b26dbf32169245f8251ca0474100bb3ee742d599 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Thu, 31 Oct 2019 12:48:36 +0200 Subject: [PATCH] autocompleter --- code/templates/flip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/templates/flip b/code/templates/flip index a127e8d..80c179e 100755 --- a/code/templates/flip +++ b/code/templates/flip @@ -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 ) ); ;;