From: "\( via Guix-patches" via <guix-patches@gnu.org>
To: 56294@debbugs.gnu.org
Cc: "\(" <paren@disroot.org>
Subject: [bug#56294] [PATCH] gnu: home: services: shells: Export Fish environment variables.
Date: Wed, 29 Jun 2022 07:53:33 +0100 [thread overview]
Message-ID: <20220629065333.11191-1-paren@disroot.org> (raw)
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 --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
--
2.36.1
reply other threads:[~2022-06-29 6:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220629065333.11191-1-paren@disroot.org \
--to=guix-patches@gnu.org \
--cc=56294@debbugs.gnu.org \
--cc=paren@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).