We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97a52f7 + 1c9b4bf commit 25b6eecCopy full SHA for 25b6eec
internal/config/config_file.go
@@ -40,8 +40,9 @@ func ConfigDir() string {
40
path = filepath.Join(d, ".config", "gh")
41
}
42
43
- // If the path does not exist try migrating config from default paths
44
- if !dirExists(path) {
+ // If the path does not exist and the GH_CONFIG_DIR flag is not set try
+ // migrating config from default paths.
45
+ if !dirExists(path) && os.Getenv(GH_CONFIG_DIR) == "" {
46
_ = autoMigrateConfigDir(path)
47
48
0 commit comments