1
0
mirror of synced 2026-03-15 07:46:56 +00:00

Merge pull request #1018 from tvories/docs/fish_completions

This commit is contained in:
Hidde Beydals
2021-03-01 17:02:41 +01:00
committed by GitHub
2 changed files with 3 additions and 11 deletions

View File

@@ -25,13 +25,9 @@ import (
var completionFishCmd = &cobra.Command{ var completionFishCmd = &cobra.Command{
Use: "fish", Use: "fish",
Short: "Generates fish completion scripts", Short: "Generates fish completion scripts",
Example: `To load completion run Example: `To configure your fish shell to load completions for each session write this script to your completions dir:
. <(flux completion fish) flux completion fish > ~/.config/fish/completions/flux.fish
To configure your fish shell to load completions for each session write this script to your completions dir:
flux completion fish > ~/.config/fish/completions/flux
See http://fishshell.com/docs/current/index.html#completion-own for more details See http://fishshell.com/docs/current/index.html#completion-own for more details
`, `,

View File

@@ -9,13 +9,9 @@ flux completion fish [flags]
### Examples ### Examples
``` ```
To load completion run
. <(flux completion fish)
To configure your fish shell to load completions for each session write this script to your completions dir: To configure your fish shell to load completions for each session write this script to your completions dir:
flux completion fish > ~/.config/fish/completions/flux flux completion fish > ~/.config/fish/completions/flux.fish
See http://fishshell.com/docs/current/index.html#completion-own for more details See http://fishshell.com/docs/current/index.html#completion-own for more details