Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
update syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Jason McCallister <jason@craftcms.com>
  • Loading branch information
jasonmccallister committed Jul 23, 2020
1 parent 9d2855e commit 1bb3682
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var completionCmd = &cobra.Command{
Short: "Generate completion scripts",
Long: `To load completion for bash run
. <(nitro completion bash)
source <(nitro completion bash)
To configure your bash shell to load completions for each session add to your bashrc
Expand All @@ -26,7 +26,7 @@ source <(nitro completion zsh)
To configure your bash shell to load completions for each session add to your bashrc
# ~/.zshrc
. <(nitro completion zsh)
source <(nitro completion zsh)
`,
RunE: func(cmd *cobra.Command, args []string) error {
return cmd.Help()
Expand All @@ -43,12 +43,12 @@ var zshCompletionCommand = &cobra.Command{
Short: "Generates bash completion scripts",
Long: `To load completion run
. <(nitro completion zsh)
source <(nitro completion zsh)
To configure your zsh shell to load completions for each session add to your zshrc
# ~/.zshrc
. <(nitro completion zsh)
source <(nitro completion zsh)
`,
Run: func(cmd *cobra.Command, args []string) {
err := rootCmd.GenZshCompletion(os.Stdout)
Expand All @@ -64,12 +64,12 @@ var bashCompletionCommand = &cobra.Command{
Short: "Generates bash completion scripts",
Long: `To load completion run
. <(nitro completion bash)
source <(nitro completion bash)
To configure your bash shell to load completions for each session add to your bashrc
# ~/.bashrc or ~/.profile
. <(nitro completion bash)
source <(nitro completion bash)
`,
Run: func(cmd *cobra.Command, args []string) {
err := rootCmd.GenBashCompletion(os.Stdout)
Expand Down

0 comments on commit 1bb3682

Please # to comment.