unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: ‘guix environment’ vs. ‘.bash_profile’
Date: Sat, 12 Sep 2020 14:49:36 +0200	[thread overview]
Message-ID: <87een788in.fsf@gnu.org> (raw)

Hello Guix!

One thing that often trips up newcomers, especially on other distros, is
the interaction of ‘guix environment’ and ‘.bashrc’ etc. when it comes
to setting environment variables.  Often the first experience is “why
doesn’t ‘guix environment’ set environment variables correctly?”.

The manual does explain this in a footnote¹ but let’s face it, people
don’t read footnotes and consistently define environment variables in
the “wrong” shell startup file.

What can we do about that?  Should we invoke the shell such that it
sources our ‘etc/profile’ after its own initialization file?  Any other
ideas?

Thanks,
Ludo’.

¹ https://guix.gnu.org/manual/en/html_node/Invoking-guix-environment.html#FOOT10


             reply	other threads:[~2020-09-12 12:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-12 12:49 Ludovic Courtès [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-13  5:24 ‘guix environment’ vs. ‘.bash_profile’ Brendan Tildesley
2020-09-13 21:22 ` Danny O'Brien
2020-09-16 16:47   ` Ludovic Courtès
2020-09-16 17:58     ` Ricardo Wurmus
2020-09-16 20:17   ` Ludovic Courtès

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=87een788in.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.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).