system: Default .bashrc now sources /etc/bashrc.
authorLudovic Courtès <ludo@gnu.org>
Mon, 11 Jun 2018 16:00:17 +0000 (18:00 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 11 Jun 2018 16:23:24 +0000 (18:23 +0200)
This is a followup to commit 1382bde93c3ccb5be6b846b932edd7707fac1a3e,
which disabled automatic sourcing of /etc/bashrc by interactive shell.
The noticeable effect of the change would be that Bash completion would
only work in login shells.

* gnu/system/shadow.scm (default-skeletons)["bashrc"]: Source
/etc/bashrc.

gnu/system/shadow.scm

index ef5b8da..28d399f 100644 (file)
@@ -168,6 +168,9 @@ then
     return
 fi
 
+# Source the system-wide file.
+source /etc/bashrc
+
 # Adjust the prompt depending on whether we're in 'guix environment'.
 if [ -n \"$GUIX_ENVIRONMENT\" ]
 then