We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
XDG_CONFIG_HOME
writeUser
updateUser
1 parent 4af9545 commit 5c1f7a9Copy full SHA for 5c1f7a9
src/index.ts
@@ -92,7 +92,7 @@ export function write (config: RC, options?: RCOptions | string) {
92
93
export function writeUser (config: RC, options?: RCOptions | string) {
94
options = withDefaults(options)
95
- options.dir = homedir()
+ options.dir = process.env.XDG_CONFIG_HOME || homedir()
96
write(config, options)
97
}
98
@@ -108,6 +108,6 @@ export function update (config: RC, options?: RCOptions | string): RC {
108
109
export function updateUser (config: RC, options?: RCOptions | string): RC {
110
111
112
return update(config, options)
113
0 commit comments