unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / 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	[flat|nested] 2+ messages in thread

* Re: [patch] Explain how to exit and clean up a guix environment
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice @ 2021-02-12 23:46 UTC (permalink / raw)
  To: Lee Fallat; +Cc: guix-devel

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

Lee Fallat 写道:
> Hey,

Hi, welcome, and thanks for the patch!

I responded on IRC (mail client's being stupid) but you don't seem 
to be on-line, so here's a less ephemeral copy:

There's a list specifically for patches (unimaginatively named 
guix-patches@), tracked together with bug-guix@ over on 
issues.guix.gnu.org.  Could you submit it there?

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[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

unofficial mirror of guix-devel@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-devel/0 guix-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-devel guix-devel/ https://yhetil.org/guix-devel \
		guix-devel@gnu.org
	public-inbox-index guix-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.devel
	nntp://news.gmane.io/gmane.comp.gnu.guix.devel


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git