summaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-12-27 22:00:39 +0100
committerLudovic Courtès <ludo@gnu.org>2023-01-05 15:01:29 +0100
commit632e2f7ce19abf109945abf572ac3c22b50cf892 (patch)
tree57674a6ecab3ae3912ab6693940e52dc465faf5f /guix/scripts
parent086df6ef213d44d4b75c263033552eef6b2bd868 (diff)
environment: Simplify 'PS1' suggestion on '--check'.
* guix/scripts/environment.scm (validate-child-shell-environment): In 'PS1' suggestion, remove 'export' and avoid 'if'.
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/environment.scm5
1 files changed, 1 insertions, 4 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index ab11b35335..bdbfa03fcf 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -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
"))))))