From 660bd001dc0e608a4040afafcf881dddd8779765 Mon Sep 17 00:00:00 2001 From: gesh Date: Wed, 10 Jan 2024 16:46:09 +0200 Subject: [PATCH] Add completion for revoke subcommand itself As it stands, bash completes when the subcommand is present, but it doesn't complete the subcommand itself --- share/bash/completion.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/bash/completion.bash b/share/bash/completion.bash index a2609a6..ef419e6 100644 --- a/share/bash/completion.bash +++ b/share/bash/completion.bash @@ -19,7 +19,10 @@ _accounts(){ _pizauth() { local cur prev sub - local cmds=(dump info refresh restore reload server show shutdown status) + local cmds=() + cmds+=(dump restore reload shutdown status) + cmds+=(info server) + cmds+=(refresh revoke show) cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD - 1]}