diff options
author | Starfall <us@starfall.systems> | 2021-10-06 20:41:09 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-10-06 20:41:09 -0500 |
commit | 0f9befd947983ecf93829371654ba9f8dfbffc55 (patch) | |
tree | aaf49a706f39e5eea17a457277608aba85852763 /.config | |
parent | 6faf8424742630f18012dde685627764c0671bc3 (diff) |
zsh: consistency in shell redirects when testing commands
Diffstat (limited to '.config')
-rw-r--r-- | .config/zsh/.zshrc | 4 |
1 files changed, 2 insertions, 2 deletions
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' |