home: services: shells: Export Fish environment variables.

Variables set in the Fish configuration weren't previously being
exported.

* gnu/home/services/shells.scm (serialize-fish-env-vars): Output the
`set -x` command instead of `set`.

Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
( 2022-06-29 07:53:33 +01:00 committed by Tobias Geerinckx-Rice
parent c92e1b3b31
commit 75a520cca6
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -555,9 +555,9 @@ (define (serialize-fish-env-vars field-name val)
((key . #f)
"")
((key . #t)
#~(string-append "set " #$key "\n"))
#~(string-append "set -x " #$key "\n"))
((key . value)
#~(string-append "set " #$key " " #$value "\n")))
#~(string-append "set -x " #$key " " #$value "\n")))
val)))
(define-configuration home-fish-configuration