Skip to content

Commit 9110db7

Browse files
author
nate smith
committed
fill in help topic
1 parent 02e9fa0 commit 9110db7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

pkg/cmd/root/help_topic.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,20 @@ var HelpTopics = map[string]map[string]string{
99
"mintty": {
1010
"short": "Information about using gh with MinTTY",
1111
"long": heredoc.Doc(`
12-
TODO
12+
MinTTY is the terminal emulator that comes by default with Git
13+
for Windows. It has known issues with gh's ability to prompt a
14+
user for input.
15+
16+
There are a few workarounds to make gh work with MinTTY:
17+
18+
- Reinstall Git for Windows.
19+
Be sure to check the box "Enable experimental support for pseudo consoles".
20+
21+
- Use a different terminal emulator with Git for Windows like Windows Terminal or cmd.exe.
22+
Try running "C:\Program Files\Git\bin\bash.exe" in one of those other terminal emulators.
23+
24+
- Prefix invocations of gh with winpty, eg: "winpty gh auth login".
25+
NOTE: this can lead to some UI bugs.
1326
`),
1427
},
1528
"environment": {

pkg/cmd/root/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command {
103103
// Help topics
104104
cmd.AddCommand(NewHelpTopic("environment"))
105105
cmd.AddCommand(NewHelpTopic("formatting"))
106+
cmd.AddCommand(NewHelpTopic("mintty"))
106107
referenceCmd := NewHelpTopic("reference")
107108
referenceCmd.SetHelpFunc(referenceHelpFn(f.IOStreams))
108109
cmd.AddCommand(referenceCmd)

0 commit comments

Comments
 (0)