Skip to content
Snippets Groups Projects
Unverified Commit cb7b501d authored by Pierre Neidhardt's avatar Pierre Neidhardt
Browse files

doc: Explain how to switch profile from empty shell in "Profiles in Practice".

* doc/guix-cookbook.texi (Profiles in Practice): Add example.
parent 6d8e6f19
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment