aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/home/services/shells.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/home/services/shells.scm b/gnu/home/services/shells.scm
index 80f13a31b7..ca7f4ac0ad 100644
--- a/gnu/home/services/shells.scm
+++ b/gnu/home/services/shells.scm
@@ -390,7 +390,9 @@ then
fi
# Source the system-wide file.
-source /etc/bashrc
+if [[ -e /etc/bashrc ]]; then
+ source /etc/bashrc
+fi
# Adjust the prompt depending on whether we're in 'guix environment'.
if [ -n \"$GUIX_ENVIRONMENT\" ]