1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 20:09:26 +00:00

Check for non-empty files, not just existance

This commit is contained in:
Sorin Ionescu
2012-04-16 14:21:29 -04:00
parent 3ed8265e28
commit e5ec94af42
13 changed files with 14 additions and 14 deletions

View File

@ -15,7 +15,7 @@ _z_prefixes=(
for _z_prefix in "$_z_prefixes[@]"; do
_z_sh="${_z_prefix}/etc/profile.d/z.sh"
if [[ -f "$_z_sh" ]]; then
if [[ -s "$_z_sh" ]]; then
source "$_z_sh"
break
fi