From e0d14af3e81743fdd883669a270ab15d1a51e0e7 Mon Sep 17 00:00:00 2001 From: zendesk-acicchetti Date: Mon, 9 Aug 2021 13:16:35 -0400 Subject: [PATCH] LS_PICKER --- zsh/funcs/ls | 4 ++-- zsh/zshrc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/funcs/ls b/zsh/funcs/ls index ef991d3..ba1ba1d 100644 --- a/zsh/funcs/ls +++ b/zsh/funcs/ls @@ -1,7 +1,7 @@ function ls { - if [[ $(whence -p lsd 2> /dev/null) ]]; then + if [[ "${LS_PICKER}" == "lsd" ]]; then lsd $@ - elif [[ $(whence -p exa 2> /dev/null) ]]; then + elif [[ "${LS_PICKER}" == "exa" ]]; then exa $@ else /bin/ls $@ diff --git a/zsh/zshrc b/zsh/zshrc index 8d17fd1..3f451ec 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -149,6 +149,7 @@ else touch $HOME/.zshsrc fi +LS_PICKER="exa" for funcfile in $HOME/.zsh.d/* ; do source "${funcfile}" done