From: Adam McCartney via <help-guix@gnu.org>
To: Nils Landt <nils@landt.email>
Cc: Adam McCartney via <help-guix@gnu.org>
Subject: Re: What else could set the GUIX_PROFILE variable?
Date: Sat, 22 Jun 2024 11:24:11 +0200 [thread overview]
Message-ID: <ZnaYOwL5cXGkAqdq@mc> (raw)
In-Reply-To: <55116962.28384.1719042603183@office.mailbox.org>
On 2024-06-22, Nils Landt wrote:
>
>> I realize that the problem goes away if I remove the control block. So maybe
>> it's just a logic error on my part. I'd still like to know what is setting the
>> GUIX_PROFILE to $HOME/.guix-home/profile when I launch tmux.
>
>The installer adds /etc/profile.d/zzz-guix.sh which, among other things, sets GUIX_PROFILE.
>
>But I don't know why this happens with tmux and not your regular shell session.
So I guess it might be due to the fact that tmux starts a login shell, so all
the profile files are sourced, where as the gnome terminal starts with an
interactive session? Possibly mixing up the terms a bit there.
Adding the following to the tmux rc file fixes it:
```
# ~/.tmux.conf
# Don't run a login shell!
set -g default-command "${SHELL}"
```
cheers,
Adam
--
Adam McCartney - https://admccartney.mur.at
/
prev parent reply other threads:[~2024-06-22 9:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-22 6:33 What else could set the GUIX_PROFILE variable? Adam McCartney via
2024-06-22 7:50 ` Nils Landt
2024-06-22 9:24 ` Adam McCartney via [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZnaYOwL5cXGkAqdq@mc \
--to=help-guix@gnu.org \
--cc=adam@mur.at \
--cc=nils@landt.email \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.