From 9129c98d1b69a52651d7ce068fff00fd1a95d147 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sun, 27 Feb 2022 22:13:07 -0500 Subject: [PATCH] when exa is not installed, don't prevent use of ls --- shell_common/.config/shell_common/aliases.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/shell_common/.config/shell_common/aliases.sh b/shell_common/.config/shell_common/aliases.sh index 7fbfe3e..ff75eb5 100644 --- a/shell_common/.config/shell_common/aliases.sh +++ b/shell_common/.config/shell_common/aliases.sh @@ -31,9 +31,13 @@ ffe() { ${EDITOR:-nvim} "$fname" } -alias ls='exa' # -ag -alias la='exa -l' -alias ll='exa -lahg' +if [ -x "$(command -v "exa")" ]; then + alias ls='exa' # -ag + alias la='exa -l' + alias ll='exa -lahg' +else + echo "exa not installed" +fi alias pu='git push' alias st='git st'