Add PowerShell instructions to completions help
This commit is contained in:
parent
c39dd1e3eb
commit
e35d41ec1f
1 changed files with 11 additions and 0 deletions
|
|
@ -53,6 +53,17 @@ func NewCmdCompletion(io *iostreams.IOStreams) *cobra.Command {
|
|||
Generate a %[1]sgh.fish%[1]s completion script:
|
||||
|
||||
gh completion -s fish > ~/.config/fish/completions/gh.fish
|
||||
|
||||
### PowerShell
|
||||
|
||||
Open your profile script with:
|
||||
|
||||
mkdir -Path (Split-Path -Parent $profile) -ErrorAction SilentlyContinue
|
||||
notepad $profile
|
||||
|
||||
Add the line and save the file:
|
||||
|
||||
Invoke-Expression -Command $(gh completion -s powershell | Out-String)
|
||||
`, "`"),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
if shellType == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue