fix: bash autocomplete docs #475
@ -12,17 +12,16 @@ var AutocompleteCommand = &cobra.Command{
|
|||||||
Long: `To load completions:
|
Long: `To load completions:
|
||||||
|
|
||||||
Bash:
|
Bash:
|
||||||
|
# Load autocompletion for the current Bash session
|
||||||
$ source <(abra autocomplete bash)
|
$ source <(abra autocomplete bash)
|
||||||
|
|
||||||
# To load autocompletion for each session, execute once:
|
# To load autocompletion for each session, execute once:
|
||||||
# Linux:
|
# Linux:
|
||||||
$ abra autocomplete bash > /etc/bash_completion.d/abra
|
$ abra autocomplete bash | sudo tee /etc/bash_completion.d/abra
|
||||||
# macOS:
|
# macOS:
|
||||||
$ abra autocomplete bash > $(brew --prefix)/etc/bash_completion.d/abra
|
$ abra autocomplete bash | sudo tee $(brew --prefix)/etc/bash_completion.d/abra
|
||||||
|
|
||||||
Zsh:
|
Zsh:
|
||||||
|
|
||||||
# If shell autocompletion is not already enabled in your environment,
|
# If shell autocompletion is not already enabled in your environment,
|
||||||
# you will need to enable it. You can execute the following once:
|
# you will need to enable it. You can execute the following once:
|
||||||
|
|
||||||
@ -34,14 +33,12 @@ Zsh:
|
|||||||
# You will need to start a new shell for this setup to take effect.
|
# You will need to start a new shell for this setup to take effect.
|
||||||
|
|
||||||
fish:
|
fish:
|
||||||
|
|
||||||
$ abra autocomplete fish | source
|
$ abra autocomplete fish | source
|
||||||
|
|
||||||
# To load autocompletions for each session, execute once:
|
# To load autocompletions for each session, execute once:
|
||||||
$ abra autocomplete fish > ~/.config/fish/completions/abra.fish
|
$ abra autocomplete fish > ~/.config/fish/completions/abra.fish
|
||||||
|
|
||||||
PowerShell:
|
PowerShell:
|
||||||
|
|
||||||
PS> abra autocomplete powershell | Out-String | Invoke-Expression
|
PS> abra autocomplete powershell | Out-String | Invoke-Expression
|
||||||
|
|
||||||
# To load autocompletions for every new session, run:
|
# To load autocompletions for every new session, run:
|
||||||
|
Reference in New Issue
Block a user