From 7fc003b7d6e65f3d08a4b2840613ac5ccb33060e Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Tue, 28 Sep 2021 16:26:44 +0300 Subject: [PATCH] completion: Add completion for bash-it profile rm/list --- completion/available/bash-it.completion.bash | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/completion/available/bash-it.completion.bash b/completion/available/bash-it.completion.bash index 024554eb..18cd241a 100644 --- a/completion/available/bash-it.completion.bash +++ b/completion/available/bash-it.completion.bash @@ -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 ;;