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:
parent
ea6dfabe3c
commit
f84f474c1b
4 changed files with 43 additions and 5 deletions
|
|
@ -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"}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue