~ruther/guix-local

a4cbd31c5c527e7235eae6f87a0bdbe0640b6013 — Tobias Geerinckx-Rice 4 years ago c47a45c
home: services: bash: Only source /etc/bashrc if it exists.

* gnu/home/services/shells.scm (home-bash-configuration):
Check whether /etc/bashrc exists before trying to ‘source’ it.

Reported by guixy on #guix.
1 files changed, 3 insertions(+), 1 deletions(-)

M gnu/home/services/shells.scm
M gnu/home/services/shells.scm => gnu/home/services/shells.scm +3 -1
@@ 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\" ]