home-services: shells: Allow list values on home-fish-configuration-environment-variables alist
parent
ac028d4c8b
commit
1284fac666
|
@ -61,6 +61,9 @@
|
||||||
(default #\%))
|
(default #\%))
|
||||||
(expansion abbreviation-expansion)) ; string | <fish-function>
|
(expansion abbreviation-expansion)) ; string | <fish-function>
|
||||||
|
|
||||||
|
(define strings?
|
||||||
|
(list-of string?))
|
||||||
|
|
||||||
(define fish-abbreviations?
|
(define fish-abbreviations?
|
||||||
(list-of abbreviation?))
|
(list-of abbreviation?))
|
||||||
|
|
||||||
|
@ -102,7 +105,9 @@
|
||||||
((key . #t)
|
((key . #t)
|
||||||
#~(string-append "set -x " #$key "\n"))
|
#~(string-append "set -x " #$key "\n"))
|
||||||
((key . value)
|
((key . value)
|
||||||
#~(string-append "set -x " #$key " " #$value "\n")))
|
#~(string-append "set -x " #$key " " #$(if (strings? value)
|
||||||
|
(string-join value)
|
||||||
|
value) "\n")))
|
||||||
val)))
|
val)))
|
||||||
|
|
||||||
(define serialize-fish-plugins
|
(define serialize-fish-plugins
|
||||||
|
|
Loading…
Reference in New Issue