docs(config): show platform-specific config.pkl paths for macOS and Linux#800
docs(config): show platform-specific config.pkl paths for macOS and Linux#800fukuchancat wants to merge 3 commits intojdx:mainfrom
Conversation
Greptile SummaryThis PR correctly fixes a cross-platform documentation bug:
Confidence Score: 4/5Safe to merge after fixing the broken internal anchor links in docs/configuration.md The core documentation fix is correct and complete across all six files. One P1 issue remains: the renamed section heading generates anchor docs/configuration.md — internal anchor links at lines 194 and 202 need to match the anchor generated by the renamed section heading Important Files Changed
Reviews (3): Last reviewed commit: "docs(config): deduplicate platform-speci..." | Re-trigger Greptile |
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in docs/configuration.md to include platform-specific configuration paths for both Linux and macOS. The review feedback suggests simplifying the tables by using references to the main hkrc section instead of repeating long, platform-specific paths in every row, which improves readability and reduces visual clutter.
…fig_dir() (#801) Hello 🍣 I opened #800 to fix the docs showing `~/.config/hk/config.pkl` as the global config path, which doesn't match the actual path on macOS (`~/Library/Application Support/hk/config.pkl` via `dirs::config_dir()`). Another option would be to align with mise's approach — use `$XDG_CONFIG_HOME` (defaulting to `~/.config`) on all platforms instead of `dirs::config_dir()`. This way `~/.config/hk/config.pkl` works everywhere and the docs are already correct. Not sure which approach makes more sense for hk — happy to defer to your judgment!
|
Closing in favor of #801, which was merged. That PR aligned the code to always use This comment was generated by Claude Code. |
Hi! 🍣
I noticed the docs consistently refer to
~/.config/hk/config.pklas the global config path, but hk usesdirs::config_dir()which resolves to~/Library/Application Support/on macOS, not~/.config/.This means macOS users following the docs will put their config in a location hk never reads.
This PR updates all references in
docs/configuration.mdto show both paths:~/.config/hk/config.pkl(Linux)~/Library/Application Support/hk/config.pkl(macOS)