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:
parent
086df6ef21
commit
632e2f7ce1
@ -610,10 +610,7 @@ If you are using Bash, you can do that by adding these lines to
|
||||
@file{~/.bashrc}:
|
||||
|
||||
@example
|
||||
if [ -n \"$GUIX_ENVIRONMENT\" ]
|
||||
then
|
||||
export PS1=\"\\u@@\\h \\w [env]\\$ \"
|
||||
fi
|
||||
PS1='\\u@@\\h \\w${GUIX_ENVIRONMENT:+ [env]}\\$ '
|
||||
@end example
|
||||
"))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user