Skip to content

Commit

Permalink
completion: Add completion for bash-it profile rm/list
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Gorny committed Sep 28, 2021
1 parent e101751 commit 7fc003b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion completion/available/bash-it.completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
Expand Down

0 comments on commit 7fc003b

Please sign in to comment.