LS_PICKER

This commit is contained in:
zendesk-acicchetti 2021-08-09 13:16:35 -04:00
parent 3715fe077d
commit e0d14af3e8
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
function ls { function ls {
if [[ $(whence -p lsd 2> /dev/null) ]]; then if [[ "${LS_PICKER}" == "lsd" ]]; then
lsd $@ lsd $@
elif [[ $(whence -p exa 2> /dev/null) ]]; then elif [[ "${LS_PICKER}" == "exa" ]]; then
exa $@ exa $@
else else
/bin/ls $@ /bin/ls $@

View file

@ -149,6 +149,7 @@ else
touch $HOME/.zshsrc touch $HOME/.zshsrc
fi fi
LS_PICKER="exa"
for funcfile in $HOME/.zsh.d/* ; do for funcfile in $HOME/.zsh.d/* ; do
source "${funcfile}" source "${funcfile}"
done done