mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
home: services: zsh: Fix zshenv creation.
Fixes a regression introduced by
4935501fd9
that would skip generating
the user's ~/.config/zsh/.zshenv unless both of zshenv and
environment-variables are set in the configuration.
* gnu/home/services/shells.scm (zsh-get-configuration-files):
Generate ~/.config/zsh/.zshenv when only one of zshenv or
environment-variables is specified.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
9535b62170
commit
032f2e261c
1 changed files with 2 additions and 2 deletions
|
@ -212,8 +212,8 @@ (define (zsh-file-by-field config field)
|
|||
|
||||
(define (zsh-get-configuration-files config)
|
||||
`(("zprofile" ,(zsh-file-by-field config 'zprofile)) ;; Always non-empty
|
||||
,@(if (and (zsh-field-not-empty? config 'zshenv)
|
||||
(zsh-field-not-empty? config 'environment-variables))
|
||||
,@(if (or (zsh-field-not-empty? config 'zshenv)
|
||||
(zsh-field-not-empty? config 'environment-variables))
|
||||
`(("zshenv" ,(zsh-file-by-field config 'zshenv))) '())
|
||||
,@(if (zsh-field-not-empty? config 'zshrc)
|
||||
`(("zshrc" ,(zsh-file-by-field config 'zshrc))) '())
|
||||
|
|
Loading…
Reference in a new issue