unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* guix environment and .bashrc
@ 2019-01-03 18:53 zimoun
  2019-01-03 20:14 ` Gábor Boskovits
  0 siblings, 1 reply; 3+ messages in thread
From: zimoun @ 2019-01-03 18:53 UTC (permalink / raw)
  To: help-guix

Dear Guixers,

I am running Guix on the top of Debian and I have issue with `guix
environment --pure'.
Well, the documentation provides some tips but I am not sure to understand.
https://www.gnu.org/software/guix/manual/en/html_node/Invoking-guix-environment.html

I use the Awesome window manager and then I open different xterm.
Then the shell is an interactive shell but not a login shell---if I
understand well---so the dance with .profile, .bash_profile and
.bashrc is not working. I mean when I open an xterm window, the file
.bash_profile is not read, therefore the env variables are not setup.

The way that I use is to add an `else' clause to the $GUIX_ENVIRONMENT test:

if [ -n "$GUIX_ENVIRONMENT" ]
then
    export PS1="\u@\h \w [dev]\$ "
else
   source ~/.bash_profile
fi

Is it correct and the right way to do?
If yes, does the manual need improvement in this section (footnote)?


Thank you for any tips.

All the best,
simon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-03 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-03 18:53 guix environment and .bashrc zimoun
2019-01-03 20:14 ` Gábor Boskovits
2019-01-03 22:53   ` zimoun

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).