Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vanilli.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fi
[ -n "${terminfo[kcbt]}" ] && bindkey "${terminfo[kcbt]}" reverse-menu-complete

# Set LS_COLORS.
if [ -x /usr/bin/dircolors ]; then
if builtin which dircolors &>/dev/null; then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about command?

Suggested change
if builtin which dircolors &>/dev/null; then
if command -v dircolors >/dev/null; then

test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
fi
# If the zsh/complist module is loaded, this style can be used to set color
Expand Down