From c2b1c7df98633fee4c2b597b5c3136140955b255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Mon, 14 Jan 2019 16:21:43 +0100 Subject: [PATCH] Configure exa as ls replacement if available --- zshrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zshrc b/zshrc index ca93d5f..7c5747f 100644 --- a/zshrc +++ b/zshrc @@ -80,11 +80,12 @@ NEWLINE=$'\n' if command-exists dircolors; then eval "$(dircolors -b)" fi -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 ll="ls $LLOPTS | less -FX" +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 + alias ls="ls $LSOPTS" +fi; #---------------------------------- Tab completion ----------------------------