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 {
|
||||
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 $@
|
||||
|
|
|
@ -149,6 +149,7 @@ else
|
|||
touch $HOME/.zshsrc
|
||||
fi
|
||||
|
||||
LS_PICKER="exa"
|
||||
for funcfile in $HOME/.zsh.d/* ; do
|
||||
source "${funcfile}"
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue