1diff --git a/lib/theme-and-appearance.zsh b/lib/theme-and-appearance.zsh
2index 585f872e18b87819586421cf55b258e232599169..43e245e1649b6fa8fcbc2b66abeff5223bcfc372 100644
3--- a/lib/theme-and-appearance.zsh
4+++ b/lib/theme-and-appearance.zsh
5@@ -19,7 +19,8 @@ then
6 colorls -G -d . &>/dev/null 2>&1 && alias ls='colorls -G'
7 else
8 # For GNU ls, we use the default ls color theme. They can later be overwritten by themes.
9- type dircolors >/dev/null 2>&1 && eval "$(dircolors)"
10+ (( $+commands[dircolors] )) && eval "$(dircolors)"
11+
12 ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
13 fi
14 fi