From: Michał Górny Date: Sun, 9 Nov 2014 20:41:31 +0000 (+0000) Subject: app-shells/bash: introduce support for bashrc.d directory that is sourced in bashrc... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f569c423ec20ef8f6de960ee97c4c7e9757b1826;p=gentoo.git app-shells/bash: introduce support for bashrc.d directory that is sourced in bashrc by default #468094 --- diff --git a/app-shells/bash/files/bashrc b/app-shells/bash/files/bashrc index a398eb1ed4a1..300070974f54 100644 --- a/app-shells/bash/files/bashrc +++ b/app-shells/bash/files/bashrc @@ -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