support MacOS
[~madcoder/dotfiles.git] / config / zsh / 10_zshopts
index a367d09..1314ea5 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/zsh
 
-if test -x =dircolors; then
+if which dircolors &> /dev/null; then
     eval "`dircolors`"
     export LS_COLORS="*.ogm=01;35:${LS_COLORS}"
     export ZLS_COLORS=$LS_COLORS