Configure exa as ls replacement if available

This commit is contained in:
Paweł Płazieński 2019-01-14 16:21:43 +01:00
parent f726e17f5c
commit c2b1c7df98

7
zshrc
View File

@ -80,11 +80,12 @@ NEWLINE=$'\n'
if command-exists dircolors; then if command-exists dircolors; then
eval "$(dircolors -b)" eval "$(dircolors -b)"
fi fi
if command-exists exa; then
alias ls='exa --git --long --all --extended --time-style long-iso'
else
LSOPTS="-lAvF --color=auto" # long mode, show all, natural sort, type squiggles, friendly sizes LSOPTS="-lAvF --color=auto" # long mode, show all, natural sort, type squiggles, friendly sizes
LLOPTS="--color=always" # so | less is colored
alias ls="ls $LSOPTS" alias ls="ls $LSOPTS"
alias ll="ls $LLOPTS | less -FX" fi;
#---------------------------------- Tab completion ---------------------------- #---------------------------------- Tab completion ----------------------------