From 34c3df43639dbd2042cd42d85c5f788e5d86cf74 Mon Sep 17 00:00:00 2001 From: Starfall Date: Thu, 16 Sep 2021 13:44:06 -0500 Subject: zsh: alias ls to exa when available (untested) --- .config/zsh/.zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index bc63b3b..404bbc7 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -70,8 +70,10 @@ alias egrep="egrep $grep_opts" alias fgrep="fgrep $grep_opts" unset grep_opts -# perhaps time to switch to exa -if ls --color 1>/dev/null 2>&1; 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 # gnu ls alias ls='ls --color=auto' alias ll='ls -l --almost-all --no-group --human-readable' -- cgit