From a3f9a1e443db7566f7b88a44ea707e6111240294 Mon Sep 17 00:00:00 2001 From: Michael Bentley Date: Sat, 3 Oct 2020 23:15:48 -0600 Subject: [PATCH] Update bash_completion from changed cli of flit disguise --- scripts/bash-completion/flit | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/scripts/bash-completion/flit b/scripts/bash-completion/flit index 19d6abff..c00fef14 100644 --- a/scripts/bash-completion/flit +++ b/scripts/bash-completion/flit @@ -105,7 +105,7 @@ _flit_disguise() -o --output -m --disguise-map -u --undo - --fields" + -j --jobs" # file field case "${prev}" in @@ -115,26 +115,8 @@ _flit_disguise() return 0 ;; - --fields) - # three possible fields: file, function, test - # TODO: separate on comma and only complete since the last comma - local possibilities=" - file - file,function - file,function,test - file,test - file,test,function - function - function,file - function,file,test - function,test - function,test,file - test - test,file - test,file,function - test,function - test,function,file" - COMPREPLY=( $(compgen -W "${possibilities}" -- "${cur}") ) + -j|--jobs) + # do no completion -- numbers return 0 ;;