fix(auto-pull): respect $__fish_user_dots_path for registry location #65

Merged
rootiest merged 1 commits from fix/auto-pull-user-dots-path into main 2026-06-24 03:09:16 +00:00
Owner

Summary

  • auto-pull function and conf.d/auto-pull.fish event handler both hardcoded $XDG_CONFIG_HOME/.user-dots/fish as the directory for auto-pull.list
  • Both now resolve $__fish_user_dots_path first (the universal variable surfaced in config-settings), falling back to the same default path
  • docs/fish-config.md updated in two places to reflect the dynamic path

Manual Verification

  • Run auto-pull status — confirm the list file path shown matches your $__fish_user_dots_path (or the default ~/.config/.user-dots/fish/auto-pull.list if unset)
  • Set a custom path: set -U __fish_user_dots_path ~/my-dots/fish — run auto-pull status again and confirm the path updates
  • Run auto-pull add in a git repo, then auto-pull list — entry should appear in ~/my-dots/fish/auto-pull.list
  • set -Ue __fish_user_dots_path to clear the override — confirm auto-pull status reverts to the default path
  • cd into a registered repo — confirm background fast-forward still fires (check git log for new commits if upstream has any)
## Summary - `auto-pull` function and `conf.d/auto-pull.fish` event handler both hardcoded `$XDG_CONFIG_HOME/.user-dots/fish` as the directory for `auto-pull.list` - Both now resolve `$__fish_user_dots_path` first (the universal variable surfaced in `config-settings`), falling back to the same default path - `docs/fish-config.md` updated in two places to reflect the dynamic path ## Manual Verification - [x] Run `auto-pull status` — confirm the list file path shown matches your `$__fish_user_dots_path` (or the default `~/.config/.user-dots/fish/auto-pull.list` if unset) - [x] Set a custom path: `set -U __fish_user_dots_path ~/my-dots/fish` — run `auto-pull status` again and confirm the path updates - [x] Run `auto-pull add` in a git repo, then `auto-pull list` — entry should appear in `~/my-dots/fish/auto-pull.list` - [x] `set -Ue __fish_user_dots_path` to clear the override — confirm `auto-pull status` reverts to the default path - [x] `cd` into a registered repo — confirm background fast-forward still fires (check `git log` for new commits if upstream has any)
rootiest added 1 commit 2026-06-24 03:08:11 +00:00
Both the auto-pull function and the PWD event handler hardcoded
$XDG_CONFIG_HOME/.user-dots/fish as the registry directory. They now
resolve $__fish_user_dots_path first, falling back to the same default,
so a custom path set via config-settings is honoured.
rootiest merged commit 5ee09bf13e into main 2026-06-24 03:09:16 +00:00
rootiest deleted branch fix/auto-pull-user-dots-path 2026-06-24 03:09:16 +00:00
Sign in to join this conversation.