From bf412d1976ff42671eee61fd954c1a4fc4657339 Mon Sep 17 00:00:00 2001 From: Fred Klassen Date: Tue, 21 Feb 2023 12:45:14 -0800 Subject: [PATCH] exa over color-ls --- README-MY-SETUP.md | 4 +++- templates/zshrc.zsh-template | 12 +++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README-MY-SETUP.md b/README-MY-SETUP.md index eea9fc1f5..2585fc714 100644 --- a/README-MY-SETUP.md +++ b/README-MY-SETUP.md @@ -193,8 +193,10 @@ 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/) -* install colorls +* optionally install colorls * `sudo gem install colorls` +* optionally install file transer app + * `curl -sL https://cutt.ly/tran-cli | bash` * on macOS * install macVIM via `brew install macvim` * if you don't like Gruv Box, you may want to install some colour themes for iTerm2 diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template index fa5f11e25..50215d809 100644 --- a/templates/zshrc.zsh-template +++ b/templates/zshrc.zsh-template @@ -194,13 +194,15 @@ export MANPATH="/usr/local/man:/usr/local/ssl/share/man:$MANPATH" # alias ohmyzsh="mate ~/.oh-my-zsh" alias gnb='git nb' # new branch aka checkout -b alias gdtl='git difftool --no-prompt' -if [ -x "$(command -v colorls)" ]; then - alias ls="colorls" - alias la="colorls -al" -fi -if [ -x "$(command -v colorls)" ]; then + +if [ -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 fi # Other custom config