mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-14 21:25:55 +02:00
environment: Define 'GUIX_ENVIRONMENT'.
* guix/scripts/environment.scm (create-environment): Define 'GUIX_ENVIRONMENT'. * doc/guix.texi (Invoking guix environment): Document it. * gnu/system/shadow.scm (default-skeletons): Adjust 'PS1' depending on whether 'GUIX_ENVIRONMENT' is defined.
This commit is contained in:
@@ -153,7 +153,13 @@ then
|
||||
source /etc/profile
|
||||
fi
|
||||
|
||||
PS1='\\u@\\h \\w\\$ '
|
||||
# Adjust the prompt depending on whether we're in 'guix environment'.
|
||||
if [ -n \"$GUIX_ENVIRONMENT\" ]
|
||||
then
|
||||
export PS1='\\u@\\h \\w\\ [env]$ '
|
||||
else
|
||||
export PS1='\\u@\\h \\w\\$ '
|
||||
fi
|
||||
alias ls='ls -p --color'
|
||||
alias ll='ls -l'\n"))
|
||||
(zlogin (text-file "zlogin" "\
|
||||
|
||||
Reference in New Issue
Block a user