summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-11-09 20:41:31 +0000
committerMike Frysinger <vapier@gentoo.org>2016-01-26 02:12:10 -0500
commitf569c423ec20ef8f6de960ee97c4c7e9757b1826 (patch)
tree3cacbd1a24645af04e81e6f009aca7b5ec9a855b /app-shells
parentapp-shells/bash: drop old versions (diff)
downloadgentoo-f569c423ec20ef8f6de960ee97c4c7e9757b1826.tar.gz
gentoo-f569c423ec20ef8f6de960ee97c4c7e9757b1826.tar.bz2
gentoo-f569c423ec20ef8f6de960ee97c4c7e9757b1826.zip
app-shells/bash: introduce support for bashrc.d directory that is sourced in bashrc by default #468094
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/bash/files/bashrc6
1 files changed, 5 insertions, 1 deletions
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