diff mbox series

[bug#56294] gnu: home: services: shells: Export Fish environment variables.

Message ID 20220629065333.11191-1-paren@disroot.org
State Accepted
Headers show
Series [bug#56294] gnu: home: services: shells: Export Fish environment variables. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

\( June 29, 2022, 6:53 a.m. UTC
Variables set in the Fish configuration weren't previously being
exported. This commit changes `set` to `set -x` to do that.

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

Based-on: d7449142f56cb0b34860f4ac90fc322aee32d177
---
 gnu/home/services/shells.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm
index fd5a66090d..dda80736b1 100644
--- a/gnu/home/services/shells.scm
+++ b/gnu/home/services/shells.scm
@@ -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