app-shells/bash: introduce support for bashrc.d directory that is sourced in bashrc...
authorMichał Górny <mgorny@gentoo.org>
Sun, 9 Nov 2014 20:41:31 +0000 (20:41 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 26 Jan 2016 07:12:10 +0000 (02:12 -0500)
app-shells/bash/files/bashrc

index a398eb1ed4a1841218296c8b7a24dba0a84280b2..300070974f5479d959ff8bd4977eb6fe16973ac5 100644 (file)
@@ -84,5 +84,9 @@ else
        fi
 fi
 
+for sh in /etc/bash/bashrc.d/* ; do
+       [[ -r ${sh} ]] && source "${sh}"
+done
+
 # Try to keep environment pollution down, EPA loves us.
-unset use_color safe_term match_lhs
+unset use_color safe_term match_lhs sh