@@ -620,13 +620,18 @@ This script depends on the 'bash-completion' package.
620
620
If it is not installed already, you can install it via your OS's package manager.
621
621
622
622
To load completions in your current shell session:
623
- $ source <(%[1]s completion bash)
623
+
624
+ source <(%[1]s completion bash)
624
625
625
626
To load completions for every new session, execute once:
626
- Linux:
627
- $ %[1]s completion bash > /etc/bash_completion.d/%[1]s
628
- MacOS:
629
- $ %[1]s completion bash > /usr/local/etc/bash_completion.d/%[1]s
627
+
628
+ #### Linux:
629
+
630
+ %[1]s completion bash > /etc/bash_completion.d/%[1]s
631
+
632
+ #### macOS:
633
+
634
+ %[1]s completion bash > /usr/local/etc/bash_completion.d/%[1]s
630
635
631
636
You will need to start a new shell for this setup to take effect.
632
637
` , c .Root ().Name ()),
@@ -649,13 +654,17 @@ You will need to start a new shell for this setup to take effect.
649
654
If shell completion is not already enabled in your environment you will need
650
655
to enable it. You can execute the following once:
651
656
652
- $ echo "autoload -U compinit; compinit" >> ~/.zshrc
657
+ echo "autoload -U compinit; compinit" >> ~/.zshrc
653
658
654
659
To load completions for every new session, execute once:
655
- # Linux:
656
- $ %[1]s completion zsh > "${fpath[1]}/_%[1]s"
657
- # macOS:
658
- $ %[1]s completion zsh > /usr/local/share/zsh/site-functions/_%[1]s
660
+
661
+ #### Linux:
662
+
663
+ %[1]s completion zsh > "${fpath[1]}/_%[1]s"
664
+
665
+ #### macOS:
666
+
667
+ %[1]s completion zsh > /usr/local/share/zsh/site-functions/_%[1]s
659
668
660
669
You will need to start a new shell for this setup to take effect.
661
670
` , c .Root ().Name ()),
@@ -678,10 +687,12 @@ You will need to start a new shell for this setup to take effect.
678
687
Long : fmt .Sprintf (`Generate the autocompletion script for the fish shell.
679
688
680
689
To load completions in your current shell session:
681
- $ %[1]s completion fish | source
690
+
691
+ %[1]s completion fish | source
682
692
683
693
To load completions for every new session, execute once:
684
- $ %[1]s completion fish > ~/.config/fish/completions/%[1]s.fish
694
+
695
+ %[1]s completion fish > ~/.config/fish/completions/%[1]s.fish
685
696
686
697
You will need to start a new shell for this setup to take effect.
687
698
` , c .Root ().Name ()),
@@ -701,7 +712,8 @@ You will need to start a new shell for this setup to take effect.
701
712
Long : fmt .Sprintf (`Generate the autocompletion script for powershell.
702
713
703
714
To load completions in your current shell session:
704
- PS C:\> %[1]s completion powershell | Out-String | Invoke-Expression
715
+
716
+ %[1]s completion powershell | Out-String | Invoke-Expression
705
717
706
718
To load completions for every new session, add the output of the above command
707
719
to your powershell profile.
0 commit comments