From 4ee9a0def5e6f9602fd29539f6bf058ced38c90b Mon Sep 17 00:00:00 2001 From: Delapouite Date: Tue, 26 Jul 2022 14:37:48 +0200 Subject: [PATCH] Add fish shell auto-completion --- command/completion/completion.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/completion/completion.go b/command/completion/completion.go index 06bbc4c3b..749c5386d 100644 --- a/command/completion/completion.go +++ b/command/completion/completion.go @@ -39,6 +39,7 @@ $ step completion bash >> ~/.bash_completion } fmt.Println("bash") fmt.Println("zsh") + fmt.Println("fish") }, } @@ -102,6 +103,8 @@ func Completion(ctx *cli.Context) error { fmt.Print(bash) case "zsh": fmt.Print(zsh) + case "fish": + fmt.Print(ctx.App.ToFishCompletion()) default: return errors.Errorf("unsupported shell %s", shell) }