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