help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What else could set the GUIX_PROFILE variable?


From: Adam McCartney
Subject: Re: What else could set the GUIX_PROFILE variable?
Date: Sat, 22 Jun 2024 11:24:11 +0200

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 /



reply via email to

[Prev in Thread] Current Thread [Next in Thread]