feat(config): introduce __fish_user_dots_path universal variable #63
Reference in New Issue
Block a user
Delete Branch "feat/user-dots-path-variable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
__fish_user_dots_pathuniversal variable so users can point the private overlay directory at any path viaset -U __fish_user_dots_path /your/path, rather than being locked to~/.config/.user-dots/fish/config.fishnow sources onlylocal.fish;local.fishis responsible for sourcing its ownsecrets.fishcompanion (removes redundant double-sourcing)docs/fish-config.mdSections 1, 7, and 10 to document the new variable and sourcing modelREADME.mdPersonalization section and "How it works" code exampleFiles Changed
config.fishdot_fishlocal +secrets.fishsource withset -q __fish_user_dots_pathfallback; source onlylocal.fishdocs/fish-config.md__fish_user_dots_pathin Sections 1, 7, 10; update path references and sourcing model descriptionREADME.mdManual Verification
local.fishis still sourced from the default path (~/.config/.user-dots/fish/local.fish) when__fish_user_dots_pathis not setset -U __fish_user_dots_path /tmp/test-dotsand create/tmp/test-dots/local.fishwithset -gx DOTS_PATH_TEST ok; open a new shell and confirmecho $DOTS_PATH_TESTprintsoksecrets.fishis no longer sourced directly byconfig.fish(it is now sourced insidelocal.fish)set -e __fish_user_dots_pathto restore default; open new shell — confirm normal operation resumes