summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-02-25 18:44:45 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-02-25 18:44:45 +0100
commitd9c8e4d1b4bda0ce9b449149e425d0996976e880 (patch)
treecb4758b4b68b76eae12b8c518189ac3c44950d3d
parent1183b5d600436423a595533aef16848dd321fabb (diff)
downloaddotfiles-d9c8e4d1b4bda0ce9b449149e425d0996976e880.tar.gz
dotfiles-d9c8e4d1b4bda0ce9b449149e425d0996976e880.tar.xz
dotfiles-d9c8e4d1b4bda0ce9b449149e425d0996976e880.zip
Bash config: stop enumerating the slave config files
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.bashrc7
1 files changed, 3 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 0d1bce2..9c840c8 100644
--- a/.bashrc
+++ b/.bashrc
@@ -26,10 +26,9 @@ _linkalias () {
linkalias () { alias "$1=_linkalias $2"; }
# Source the other common definitions
-_bashconfs="~/.bashrc-dotfiles ~/.bashrc-fedora ~/.bashrc-work ~/.bashrc-xml ~/.bashrc-priv ~/.bashrc-preexec"
-for f in ${_bashconfs}; do
- f=${f/#~/$HOME}
- [ -f "${f}" ] && source "${f}" || :
+for f in /etc/profile \
+ $(find ~ -maxdepth 1 -name '.bashrc-*' \! -name '.bashrc-priv-*'); do
+ test -f "${f}" && source "${f}" || :
done
# User specific aliases and functions