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

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.
This commit is contained in:
2026-06-23 23:07:46 -04:00
parent cd240f4460
commit 390072e919
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ function auto-pull --description 'Manage the auto-pull repository registry'
set -l c_reset (set_color normal)
set -q __fish_config_dir; or set -l __fish_config_dir $XDG_CONFIG_HOME/fish
set -l list "$XDG_CONFIG_HOME/.user-dots/fish/auto-pull.list"
set -q __fish_user_dots_path; or set -l __fish_user_dots_path "$XDG_CONFIG_HOME/.user-dots/fish"
set -l list "$__fish_user_dots_path/auto-pull.list"
set -l cmd $argv[1]
set -e argv[1]