We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39dd1e commit e35d41eCopy full SHA for e35d41e
pkg/cmd/completion/completion.go
@@ -53,6 +53,17 @@ func NewCmdCompletion(io *iostreams.IOStreams) *cobra.Command {
53
Generate a %[1]sgh.fish%[1]s completion script:
54
55
gh completion -s fish > ~/.config/fish/completions/gh.fish
56
+
57
+ ### PowerShell
58
59
+ Open your profile script with:
60
61
+ mkdir -Path (Split-Path -Parent $profile) -ErrorAction SilentlyContinue
62
+ notepad $profile
63
64
+ Add the line and save the file:
65
66
+ Invoke-Expression -Command $(gh completion -s powershell | Out-String)
67
`, "`"),
68
RunE: func(cmd *cobra.Command, args []string) error {
69
if shellType == "" {
0 commit comments