From 9d05d657599618e532bbd3af6b87e92fdff47a85 Mon Sep 17 00:00:00 2001 From: Alyxia Sother Date: Wed, 8 Feb 2023 12:33:11 +0100 Subject: [PATCH] [zsh] Fix ls on macOS --- zsh/aliases.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index cd06c14..269a220 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -1 +1,9 @@ alias welcome="welcome --extra-logos-dir $K_ZSH_DOTFILES/../script-resources/welcome/logos" + +if (( _is_macos )); then + if command_exists exa; then + alias ls="exa --classify --group-directories-first" + else + alias ls="ls --group-directories-first --color=auto" + fi +fi