commit:     ac4b4c5c9f251c5dfb11c80782dd8cf1f6d81c04
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 13 19:50:11 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jan 13 19:50:11 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/prefix/prefix-toolkit.git/commit/?id=ac4b4c5c

startprefix: give hint how to stop using Gentoo Prefix env

This is based on the work from David Palao <david.palao <AT> gmail.com>.  The
wording is somewhat different, but to the extent to give a hint that
exiting the shell is also leaving the Gentoo Prefix environment.

Closes: https://github.com/gentoo/prefix-toolkit/pull/1
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 startprefix | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/startprefix b/startprefix
index c720b1d..f9aeaab 100644
--- a/startprefix
+++ b/startprefix
@@ -50,7 +50,8 @@ fi
 export SHELL
 
 # give a small notice
-echo "Entering Gentoo Prefix ${EPREFIX}"
+echo "Starting Gentoo Prefix shell ${SHELL}"
+echo "[exit the shell to deactivate Gentoo Prefix]"
 # start the login shell, clean the entire environment but what's needed
 RETAIN="HOME=$HOME TERM=$TERM USER=$USER SHELL=$SHELL"
 # PROFILEREAD is necessary on SUSE not to wipe the env on shell start

Reply via email to