# HG changeset patch # User Oleksandr Gavenko # Date 1317223299 -10800 # Node ID 987a83ddd68956b6dd709dd880a27326b8dd4c24 # Parent 35ff28da5c8593a93aa7be501421cc4bb2bd2f59 Fix issue with empty/non-exist directory. diff -r 35ff28da5c85 -r 987a83ddd689 .bash_completion --- a/.bash_completion Wed Sep 28 15:39:38 2011 +0300 +++ b/.bash_completion Wed Sep 28 18:21:39 2011 +0300 @@ -1,7 +1,9 @@ -for f in ~/.bash_completion.d/*; do - . $f -done +if [[ -s ~/.bash_completion.d ]]; then + for f in ~/.bash_completion.d/* ~/.bash_completion.d/.*; do + . $f + done +fi # Local variables: # mode: shell-script