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
1 changed files with 1 additions and 4 deletions
|
@ -610,10 +610,7 @@ If you are using Bash, you can do that by adding these lines to
|
||||||
@file{~/.bashrc}:
|
@file{~/.bashrc}:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
if [ -n \"$GUIX_ENVIRONMENT\" ]
|
PS1='\\u@@\\h \\w${GUIX_ENVIRONMENT:+ [env]}\\$ '
|
||||||
then
|
|
||||||
export PS1=\"\\u@@\\h \\w [env]\\$ \"
|
|
||||||
fi
|
|
||||||
@end example
|
@end example
|
||||||
"))))))
|
"))))))
|
||||||
|
|
||||||
|
|
Reference in a new issue