From e3849d59024fa05081aadcdacf6cabe1a296fb7a Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 15 Sep 2024 15:22:44 +0200 Subject: [PATCH] give a try to lsd --- dot_bashrc.tmpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dot_bashrc.tmpl b/dot_bashrc.tmpl index 339ca6e..21494a1 100644 --- a/dot_bashrc.tmpl +++ b/dot_bashrc.tmpl @@ -49,12 +49,17 @@ alias vi=$EDITOR # ALIASES # --------------------------------------------------------------------------- -if hash exa 2>/dev/null; then +if hash lsd 2>/dev/null; then + alias ls="lsd" + alias ll="ls -l" + alias la="ls -la" +elif hash exa 2>/dev/null; then alias ll="exa --long --group-directories-first --classify --git" alias la="ll --all" else alias ll="ls -lv --group-directories-first --ignore=.." # show long listing but no hidden dotfiles except "." alias la='ls -lav' + test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors) fi alias rm='rm --interactive --verbose' @@ -221,4 +226,3 @@ else fi fi -test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors) \ No newline at end of file