From d284bf29e04e1561736527f95b0db1115939ce46 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sat, 23 Mar 2019 01:27:13 +0100 Subject: [PATCH] zshrc: use lsd if available --- etc/zsh/zshrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 68be990..28b5948 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1,8 +1,16 @@ bindkey -e # emacs mode -alias ls="ls --classify --color --group-directories-first --quoting-style=literal" -alias l="ls --human-readable -l" -alias ll="l --almost-all" +which lsd > /dev/null +if [[ $? -eq 0 ]]; then + alias ls="lsd --group-dirs first" + alias l="ls --long" + alias ll="l --all" +else + alias ls="ls --classify --color --group-directories-first --quoting-style=literal" + alias l="ls --human-readable -l" + alias ll="l --almost-all" +fi + alias cp="cp --reflink=auto" alias grep="grep --text --color=auto" alias pull_website="wget --no-parent --recursive --page-requisites --convert-links --html-extension --no-clobber"