From 5a2c24d3632bed5c2a34e0ceedcbe639eddd74b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=A1=C9=A8=D5=BC=C9=A2=D3=84=D5=A1=D6=85=D5=BC=C9=A2?= Date: Mon, 27 Mar 2023 09:18:09 +0800 Subject: [PATCH] docs: revise GH_CONFIG_DIR content in help_topic.go (#7230) --- pkg/cmd/root/help_topic.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/root/help_topic.go b/pkg/cmd/root/help_topic.go index 42892d76d..4a4d19a51 100644 --- a/pkg/cmd/root/help_topic.go +++ b/pkg/cmd/root/help_topic.go @@ -79,8 +79,11 @@ var HelpTopics = map[string]map[string]string{ checks for new releases once every 24 hours and displays an upgrade notice on standard error if a newer version was found. - GH_CONFIG_DIR: the directory where gh will store configuration files. Default: - "$XDG_CONFIG_HOME/gh" or "$HOME/.config/gh". + GH_CONFIG_DIR: the directory where gh will store configuration files. If not specified, + the default value will be one of the following paths (in order of precedence): + - "$XDG_CONFIG_HOME/gh" (if $XDG_CONFIG_HOME is set), + - "$AppData/GitHub CLI" (on Windows if $AppData is set), or + - "$HOME/.config/gh". GH_PROMPT_DISABLED: set to any value to disable interactive prompting in the terminal.