diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-02-25 18:44:45 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-02-25 18:44:45 +0100 |
commit | d9c8e4d1b4bda0ce9b449149e425d0996976e880 (patch) | |
tree | cb4758b4b68b76eae12b8c518189ac3c44950d3d | |
parent | 1183b5d600436423a595533aef16848dd321fabb (diff) | |
download | dotfiles-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-- | .bashrc | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |