mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
zsh: respect xdg.enable for dotDir
Make sure we actually respect a user's `xdg.enable` preference. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -99,7 +99,7 @@ in
|
||||
"assertFileExists 'home-files/${if relDotDir == "" then "" else "${relDotDir}/"}.zshenv'"
|
||||
|
||||
# for non-default dotDir only:
|
||||
(lib.optionalString (case != "default" && case != "root-slash" && case != "root-no-slash") ''
|
||||
(lib.optionalString (absDotDir != home) ''
|
||||
# check .zshenv in homeDirectory sources .zshenv in dotDir
|
||||
assertFileRegex home-files/.zshenv "source ${lib.escapeShellArg "${absDotDir}/.zshenv"}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user