From 12a92703f0a1d6ec40b8b693affefe270a8c623c Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Thu, 14 Nov 2019 22:23:00 -0800 Subject: [PATCH] Re-fix grc ls options. --- dotfiles/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 9a1899d..6e79549 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -106,8 +106,8 @@ if [[ $- == *i* ]] ; then source /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh fi # Enable grc if we have it - if ls --version 2>&1 >/dev/null ; then - alias ls='ls --color' + if command ls --version 2>&1 >/dev/null ; then + alias ls="$(whence -p ls) --color -C" fi [[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh # Syntax highlighting and substring search