mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 21:51:42 +00:00
Check for non-empty files, not just existance
This commit is contained in:
@ -16,7 +16,7 @@ if is-callable 'dircolors'; then
|
||||
alias ls='ls --group-directories-first'
|
||||
|
||||
if zstyle -t ':omz:alias:ls' color; then
|
||||
if [[ -f "$HOME/.dir_colors" ]]; then
|
||||
if [[ -s "$HOME/.dir_colors" ]]; then
|
||||
eval "$(dircolors "$HOME/.dir_colors")"
|
||||
else
|
||||
eval "$(dircolors)"
|
||||
|
Reference in New Issue
Block a user