From 1e4e536bcbdeab4c733db2462c6840ddc06e88c9 Mon Sep 17 00:00:00 2001 From: chemotaxis Date: Mon, 19 Jul 2021 15:44:37 -0400 Subject: [PATCH] Revise Windows note --- pkg/cmd/alias/set/set.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/cmd/alias/set/set.go b/pkg/cmd/alias/set/set.go index 5333046ba..1bc732742 100644 --- a/pkg/cmd/alias/set/set.go +++ b/pkg/cmd/alias/set/set.go @@ -50,14 +50,10 @@ func NewCmdSet(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command Quotes must always be used when defining a command as in the examples unless you pass '-' as the expansion parameter and pipe your command to 'gh alias set'. - **Platform notes for Windows:** + Platform notes for Windows: - - If you are using a shell that is *not* Unix-like (e.g. Command Prompt, cmd.exe), - make sure to *double quote* when defining an alias. - For instance, use ` + "`gh alias set pv \"pr view\"`" + ` instead of ` + "`gh alias set pv 'pr view'`. " + - ` - All the examples assume a Unix-like shell. - `), + - If you are using the Command Prompt (cmd.exe), use *double* quotes instead of single quotes. + For instance, use` + " `gh alias set pv \"pr view\"` instead of `gh alias set pv 'pr view'`. "), Example: heredoc.Doc(` $ gh alias set pv 'pr view' $ gh pv -w 123