unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [patch] Explain how to exit and clean up a guix environment
@ 2021-02-12 22:45 Lee Fallat
  2021-02-12 23:46 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 2+ messages in thread
From: Lee Fallat @ 2021-02-12 22:45 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 438 bytes --]

Hey,

It'd be useful to explicitly state how to do this. While my guess of
exiting the shell (or ctrl-d) was correct, not everyone will know!

Also there are people like myself who like to reduce storage usage if
possible on machines which don't have much, like on netbooks or ultra-
books. I've mentioned how to remove packages after exiting from the
environment.

I hope I'm submitting this patch correctly, if not let me know!

-- Lee

[-- Attachment #2: guix_environment_exit_and_clean.patch --]
[-- Type: text/x-patch, Size: 808 bytes --]

diff --git a/doc/guix.texi b/doc/guix.texi
index 68abb968b0..83a8205e2e 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5558,6 +5558,11 @@ they should be defined in @file{.bash_profile}, which is sourced only by
 log-in shells.  @xref{Bash Startup Files,,, bash, The GNU Bash Reference
 Manual}, for details on Bash start-up files.}.
 
+Exiting from a guix environment is the same as exiting from the shell, and will
+place the user back in the old enviroment before @command{guix enviroment} was
+invoked. To remove the packages which were installed by @command{guix
+environment}, the garbage collector must be invoked using @command{guix gc}.
+
 @vindex GUIX_ENVIRONMENT
 @command{guix environment} defines the @env{GUIX_ENVIRONMENT}
 variable in the shell it spawns; its value is the file name of the

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

end of thread, other threads:[~2021-02-12 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 22:45 [patch] Explain how to exit and clean up a guix environment Lee Fallat
2021-02-12 23:46 ` Tobias Geerinckx-Rice

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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