environment: Simplify 'PS1' suggestion on '--check'.

* guix/scripts/environment.scm (validate-child-shell-environment): In
'PS1' suggestion, remove 'export' and avoid 'if'.
This commit is contained in:
Ludovic Courtès 2022-12-27 22:00:39 +01:00
parent 086df6ef21
commit 632e2f7ce1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -610,10 +610,7 @@ (define-syntax-rule (warn exp ...)
@file{~/.bashrc}:
@example
if [ -n \"$GUIX_ENVIRONMENT\" ]
then
export PS1=\"\\u@@\\h \\w [env]\\$ \"
fi
PS1='\\u@@\\h \\w${GUIX_ENVIRONMENT:+ [env]}\\$ '
@end example
"))))))