From f569c423ec20ef8f6de960ee97c4c7e9757b1826 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 9 Nov 2014 20:41:31 +0000 Subject: [PATCH] app-shells/bash: introduce support for bashrc.d directory that is sourced in bashrc by default #468094 --- app-shells/bash/files/bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.26.2