Fix ~/.bashrc.d/*.conf if more than one file exist

Thanks to Quentin L.

Signed-off-by: Alban VIDAL <alban.vidal@zordhak.fr>
This commit is contained in:
Alban VIDAL 2018-06-15 19:22:24 +02:00
parent d7f9c3b373
commit 56f82be3cc

View File

@ -1,5 +1,5 @@
# If .bashrc.d directory exist, load .conf files # If .bashrc.d directory exist, load .conf files
if [ -f ~/.bashrc.d/*.conf ]; then if [[ -f ~/.bashrc.d/*.conf ]]; then
for bashrc_d_file in ~/.bashrc.d/*.conf ; do for bashrc_d_file in ~/.bashrc.d/*.conf ; do
. $bashrc_d_file . $bashrc_d_file
done done