Browse Source

.bashrc: fixed sourcing loop to only do when the file exists

master
Alejandro Mery 16 years ago
parent
commit
f21b7f74f9
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      .bashrc

+ 5
- 6
.bashrc

@ -58,10 +58,9 @@ fi
# local settings
for x in .bash/local.in /etc/bash_completion; do
case "$x" in
/*) ;;
*) x="$HOME/$x" ;;
esac
. "$x"
expr "$x" : / > /dev/null || x="$HOME/$x"
if [ -s "$x" ]; then
. "$x"
fi
done

Loading…
Cancel
Save