Configure exa as ls replacement if available
This commit is contained in:
parent
f726e17f5c
commit
c2b1c7df98
11
zshrc
11
zshrc
@ -80,11 +80,12 @@ NEWLINE=$'\n'
|
|||||||
if command-exists dircolors; then
|
if command-exists dircolors; then
|
||||||
eval "$(dircolors -b)"
|
eval "$(dircolors -b)"
|
||||||
fi
|
fi
|
||||||
LSOPTS="-lAvF --color=auto" # long mode, show all, natural sort, type squiggles, friendly sizes
|
if command-exists exa; then
|
||||||
LLOPTS="--color=always" # so | less is colored
|
alias ls='exa --git --long --all --extended --time-style long-iso'
|
||||||
|
else
|
||||||
alias ls="ls $LSOPTS"
|
LSOPTS="-lAvF --color=auto" # long mode, show all, natural sort, type squiggles, friendly sizes
|
||||||
alias ll="ls $LLOPTS | less -FX"
|
alias ls="ls $LSOPTS"
|
||||||
|
fi;
|
||||||
|
|
||||||
#---------------------------------- Tab completion ----------------------------
|
#---------------------------------- Tab completion ----------------------------
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user