From 389fdb7f99ffe445b8b5b881cd8dae1c428e249b Mon Sep 17 00:00:00 2001 From: Sam Coe Date: Wed, 2 Jun 2021 09:56:22 -0400 Subject: [PATCH] Add XDG env variables to environment help topic --- pkg/cmd/root/help_topic.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/cmd/root/help_topic.go b/pkg/cmd/root/help_topic.go index 968b8a617..040c9fa12 100644 --- a/pkg/cmd/root/help_topic.go +++ b/pkg/cmd/root/help_topic.go @@ -64,6 +64,12 @@ var HelpTopics = map[string]map[string]string{ GH_NO_UPDATE_NOTIFIER: set to any value to disable update notifications. By default, gh 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, XDG_CONFIG_HOME (in order of precedence): the directory where gh will store configuration files. + + XDG_STATE_HOME: the directory where gh will store state files. + + XDG_DATA_HOME: the directory where gh will store data files. `), }, "reference": {