Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

$XDG_CONFIG_HOME should default to ~/.config

未關閉
#268 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
javascript
領域
cli, tooling

研究方向

從 git-node 的設定查找開始,追蹤未設定的 XDG_CONFIG_HOME 是如何處理的。將該行為與所參照的 basedir 規範以及現有的 ~/.config/ncurc 範例進行比較;完成標準是:在該變數未設定時,git-node 能辨識該設定,並且不再報錯。

由索引模型根據 Issue 內容生成。

描述

Ref: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

Atm, that does not work — my XDG_CONFIG_HOME is not overriden (i.e. is unset), I have a config at ~/.config/ncurc, and git-node still complains.

主要語言
JavaScript
星號
313
分支
137
平均合併
2 天 8 小時
30 天內合併 PR
24

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/node-core-utils 的其他 Issue

查看 nodejs/node-core-utils 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。