Skip to content

Commit

Permalink
Merge pull request #708 from Delapouite/fish
Browse files Browse the repository at this point in the history
Add fish shell auto-completion
  • Loading branch information
dopey committed Jul 28, 2022
2 parents 3586b16 + 4ee9a0d commit ff5a58f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/completion/completion.go
Expand Up @@ -39,6 +39,7 @@ $ step completion bash >> ~/.bash_completion
}
fmt.Println("bash")
fmt.Println("zsh")
fmt.Println("fish")
},
}

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit ff5a58f

Please sign in to comment.