From 0f9befd947983ecf93829371654ba9f8dfbffc55 Mon Sep 17 00:00:00 2001 From: Starfall Date: Wed, 6 Oct 2021 20:41:09 -0500 Subject: zsh: consistency in shell redirects when testing commands --- .config/zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 05c0378..1f2baac 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -23,10 +23,10 @@ alias egrep="egrep $grep_opts" alias fgrep="fgrep $grep_opts" unset grep_opts -if command -v exa &>/dev/null; then +if command -v exa &> /dev/null; then alias ls='exa' alias ll='exa --long --header --all' -elif ls --color 1>/dev/null 2>&1; then +elif ls --color &> /dev/null; then # gnu ls alias ls='ls --color=auto' alias ll='ls -l --almost-all --no-group --human-readable' -- cgit