From 0e65034771597274ab6bb4f228309013d7bb29ab Mon Sep 17 00:00:00 2001 From: Fred Klassen Date: Tue, 21 Feb 2023 14:29:15 -0800 Subject: [PATCH] lsd over exa --- README-MY-SETUP.md | 11 ++++++++--- templates/zshrc.zsh-template | 12 ++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README-MY-SETUP.md b/README-MY-SETUP.md index 2585fc714..27789702b 100644 --- a/README-MY-SETUP.md +++ b/README-MY-SETUP.md @@ -38,6 +38,12 @@ macOS brew install exa ``` + * and/or install `ls` replacement `lsd` + + ```shell + brew install lsd + ``` + * continue to [Common Install Steps](#common-install-steps) Linux @@ -46,7 +52,7 @@ Linux * install some terminal tools ```(shell) - sudo apt install curl exa fasd fzf ruby-full thefuck tmux vim-nox + sudo apt install curl exa fasd fzf lsd ruby-full thefuck tmux vim-nox ``` * install [Tilex](https://gnunn1.github.io/tilix-web/) @@ -193,8 +199,7 @@ There are a few things that can make things even better * if tmux is installed install tmux config [Oh My Tmux](https://github.com/gpakosz/.tmux) * install vim config [SpaceVim](https://spacevim.org/) * install Mosh replacement [Eternal Terminal](https://eternalterminal.dev/) -* optionally install colorls - * `sudo gem install colorls` +* optionally install [lsd](https://github.com/Peltoche/lsd) * optionally install file transer app * `curl -sL https://cutt.ly/tran-cli | bash` * on macOS diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index 50215d809..de39a8c9e 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -195,14 +195,14 @@ export MANPATH="/usr/local/man:/usr/local/ssl/share/man:$MANPATH" alias gnb='git nb' # new branch aka checkout -b alias gdtl='git difftool --no-prompt' -if [ -x "$(command -v exa)" ]; then +if [ -x "$(command -v lsd)" ]; then + alias ls="lsd" +elif [ -x "$(command -v exa)" ]; then alias ls="exa" alias la="exa --long --all --group" -else - if [ -x "$(command -v colorls)" ]; then - alias ls="colorls" - alias la="colorls -al" - fi +elif [ -x "$(command -v colorls)" ]; then + alias ls="colorls" + alias la="colorls -al" fi # Other custom config