guix-commits
[Top][All Lists]
Advanced

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

01/01: doc: Explain how to switch profile from empty shell in "Profiles


From: guix-commits
Subject: 01/01: doc: Explain how to switch profile from empty shell in "Profiles in Practice".
Date: Wed, 30 Oct 2019 04:35:14 -0400 (EDT)

ambrevar pushed a commit to branch master
in repository guix.

commit cb7b501deb7c99a14cba5865dfcca4adc3437439
Author: Pierre Neidhardt <address@hidden>
Date:   Wed Oct 30 09:33:53 2019 +0100

    doc: Explain how to switch profile from empty shell in "Profiles in 
Practice".
    
    * doc/guix-cookbook.texi (Profiles in Practice): Add example.
---
 doc/guix-cookbook.texi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/doc/guix-cookbook.texi b/doc/guix-cookbook.texi
index 4e60862..869b966 100644
--- a/doc/guix-cookbook.texi
+++ b/doc/guix-cookbook.texi
@@ -1774,6 +1774,14 @@ You can roll-back to any generation of a given profile:
 guix package -p "$GUIX_EXTRA_PROFILES"/my-project/my-project 
--switch-generations=17
 @end example
 
+Finally, if you want to switch to a profile without inheriting from the
+current environment, you can activate it from an empty shell:
+
+@example
+env -i $(which bash) --login --noprofile --norc
+. my-project/etc/profile
+@end example
+
 @node Required packages
 @subsection Required packages
 



reply via email to

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