Skip to content

Commit 1e4e536

Browse files
committed
Revise Windows note
1 parent 2c52819 commit 1e4e536

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/cmd/alias/set/set.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,10 @@ func NewCmdSet(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command
5050
Quotes must always be used when defining a command as in the examples unless you pass '-'
5151
as the expansion parameter and pipe your command to 'gh alias set'.
5252
53-
**Platform notes for Windows:**
53+
Platform notes for Windows:
5454
55-
- If you are using a shell that is *not* Unix-like (e.g. Command Prompt, cmd.exe),
56-
make sure to *double quote* when defining an alias.
57-
For instance, use ` + "`gh alias set pv \"pr view\"`" + ` instead of ` + "`gh alias set pv 'pr view'`. " +
58-
`
59-
All the examples assume a Unix-like shell.
60-
`),
55+
- If you are using the Command Prompt (cmd.exe), use *double* quotes instead of single quotes.
56+
For instance, use` + " `gh alias set pv \"pr view\"` instead of `gh alias set pv 'pr view'`. "),
6157
Example: heredoc.Doc(`
6258
$ gh alias set pv 'pr view'
6359
$ gh pv -w 123

0 commit comments

Comments
 (0)