We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec955f commit 20c7f64Copy full SHA for 20c7f64
packages/cli/src/config.ts
@@ -46,7 +46,10 @@ export interface Config {
46
47
export async function loadConfig(): Promise<Config> {
48
const currentDir = Deno.cwd();
49
- const homeDir = Deno.env.get("HOME");
+
50
+ // for more details, see https://wiki.archlinux.org/title/XDG_Base_Directory
51
+ const homeDir = Deno.env.get("XDG_CONFIG_HOME") ??
52
+ `${Deno.env.get("HOME")}/.config`;
53
54
// search config file in current directory, priority arrays
55
const paths = [
0 commit comments