unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46477] [patch] Explain how to exit and clean up a guix environment
@ 2021-02-13  0:35 Lee Fallat
  2021-02-15 11:08 ` bug#46477: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Lee Fallat @ 2021-02-13  0:35 UTC (permalink / raw)
  To: 46477

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

I accidentally sent the patch to the wrong mailing list and was pointed
to this one (thanks Tobias!).

I've attached the patch to this email as well (this time using git
format-patch instead of git diff -u).

[-- Attachment #2: 0001-Explain-how-to-exit-and-clean-up-a-guix-environment.patch --]
[-- Type: text/x-patch, Size: 1135 bytes --]

From 607c3af436c80744acf8a878c19e191d82f6cdda Mon Sep 17 00:00:00 2001
From: Lee <inbox@leefallat.ca>
Date: Fri, 12 Feb 2021 16:44:56 -0500
Subject: [PATCH] Explain how to exit and clean up a guix environment

The current documentation doesn't explain how to exit an environment or how to
remove the packages after exiting.
---
 doc/guix.texi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 68abb968b0..e7c55e00da 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -5558,6 +5558,10 @@ 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 clean up packages which were installed invoke @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
-- 
2.30.0


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

* bug#46477: [patch] Explain how to exit and clean up a guix environment
  2021-02-13  0:35 [bug#46477] [patch] Explain how to exit and clean up a guix environment Lee Fallat
@ 2021-02-15 11:08 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-02-15 11:08 UTC (permalink / raw)
  To: Lee Fallat; +Cc: 46477-done

Hello,

Lee Fallat <inbox@leefallat.ca> writes:

> Subject: [PATCH] Explain how to exit and clean up a guix environment

I applied your patch. Thank you.

I fixed a few typos (enviroment -> environment) and added two spaces
after full stop. 

I also reworded the last sentence to make it more accurate, but I'm not
sure my new text is particularly clear. Ah, well.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2021-02-15 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-13  0:35 [bug#46477] [patch] Explain how to exit and clean up a guix environment Lee Fallat
2021-02-15 11:08 ` bug#46477: " Nicolas Goaziou

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