[Bug 1140132] New: [FEATURE] [Bash] Add support for ~/.bashrc.d/*
http://bugzilla.opensuse.org/show_bug.cgi?id=1140132 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 --> http://bugzilla.opensuse.org/attachment.cgi?id=809183&action=edit 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: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1140132
Piotr Dabrowski
http://bugzilla.opensuse.org/show_bug.cgi?id=1140132
http://bugzilla.opensuse.org/show_bug.cgi?id=1140132#c2
--- Comment #2 from Dr. Werner Fink
http://bugzilla.opensuse.org/show_bug.cgi?id=1140132
http://bugzilla.opensuse.org/show_bug.cgi?id=1140132#c3
Dr. Werner Fink
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com