Bug ID 1140132
Summary [FEATURE] [Bash] Add support for ~/.bashrc.d/*
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware All
OS Other
Status NEW
Severity Enhancement
Priority P5 - None
Component Usability
Assignee bnc-team-screening@forge.provo.novell.com
Reporter phd@phd.re
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 809183 [details]
support for ~/.bashrc.d/*

In Bash (.profile, .bash_profile or .bashrc) add support for custom
configuration files stored in ~/.bashrc.d/ directory.

Patch:

+# include all files from .bashrc.d/
+if [ -d "$HOME/.bashrc.d" ]; then
+    for rc in "$HOME/.bashrc.d/"*; do
+        if [ -f "$rc" ]; then
+            . "$rc"
+        fi
+    done
+fi


You are receiving this mail because: