LS_PICKER
This commit is contained in:
parent
3715fe077d
commit
e0d14af3e8
2 changed files with 3 additions and 2 deletions
|
@ -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 $@
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue