completion: Add completion for bash-it profile rm/list

pull/1865/head
Noah Gorny 2021-09-28 16:26:44 +03:00
parent e1017513d0
commit 7fc003b7d6
1 changed files with 10 additions and 1 deletions

View File

@ -102,11 +102,20 @@ _bash-it-comp()
fi
return 0
;;
rm)
if [[ "rm" == "$prev" ]]; then
_bash-it-comp-list-profiles
fi
return 0
;;
save)
return 0
;;
list)
return 0
;;
*)
local profile_args="load save"
local profile_args="load save list rm"
COMPREPLY=( $(compgen -W "${profile_args}" -- ${cur}) )
return 0
;;