From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: guix environment and .bashrc Date: Thu, 3 Jan 2019 19:53:08 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gf87N-0000U4-HT for help-guix@gnu.org; Thu, 03 Jan 2019 13:53:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gf87M-0002FK-N2 for help-guix@gnu.org; Thu, 03 Jan 2019 13:53:21 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gf87M-0002Ey-Gv for help-guix@gnu.org; Thu, 03 Jan 2019 13:53:20 -0500 Received: by mail-wr1-x431.google.com with SMTP id z5so34511151wrt.11 for ; Thu, 03 Jan 2019 10:53:20 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org 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