mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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:
parent
50500f7cf0
commit
28de8d258b
3 changed files with 25 additions and 2 deletions
|
@ -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" "\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue