[zsh] Establish a DOTFILES_HOME variable

Look for a config file at ~/.config/dotfiles-home that contains the path to the
repo, or check the usual location of ~/.dotfiles.

Do this in a shell function in .zshenv so it's repeatable. This needs to be done
very early in the init process.
This commit is contained in:
Eryn Wells 2026-01-18 08:05:33 -07:00
parent 0d3b4a232f
commit cbebbffee0
2 changed files with 18 additions and 1 deletions

View file

@ -16,7 +16,7 @@ function init-env-tilde-paths
break
done
export df=~/.dotfiles
export df="$DOTFILES_HOME"
}
init-env-tilde-paths "$@"