home-services: shells: Allow list values on home-fish-configuration-environment-variables alist

main
Luis Guilherme Coelho 2024-08-13 00:32:45 -03:00
parent ac028d4c8b
commit 1284fac666
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 6 additions and 1 deletions

View File

@ -61,6 +61,9 @@
(default #\%))
(expansion abbreviation-expansion)) ; string | <fish-function>
(define strings?
(list-of string?))
(define fish-abbreviations?
(list-of abbreviation?))
@ -102,7 +105,9 @@
((key . #t)
#~(string-append "set -x " #$key "\n"))
((key . value)
#~(string-append "set -x " #$key " " #$value "\n")))
#~(string-append "set -x " #$key " " #$(if (strings? value)
(string-join value)
value) "\n")))
val)))
(define serialize-fish-plugins