From fee40e2aaa2df92a56eb59a0a14a602117fc9912 Mon Sep 17 00:00:00 2001 From: Wassim DHIF Date: Sun, 1 Oct 2023 17:55:22 +0200 Subject: [PATCH] [zsh] Fix ls colors for macOS --- zsh/custom/alias.zsh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/zsh/custom/alias.zsh b/zsh/custom/alias.zsh index 637879e..3a72ab2 100644 --- a/zsh/custom/alias.zsh +++ b/zsh/custom/alias.zsh @@ -8,15 +8,8 @@ alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." -# Detect which 'ls' flavor is in use -if [[ $OSTYPE == 'linux-gnu'* ]]; then - colorflag='--color' -elif [[ $OSTYPE == 'darwin'* ]]; then - colorflag="-G" -fi - # ls aliases -alias ls="ls ${colorflag}" +alias ls="ls --color" alias ll="ls -alF" alias la="ls -lha" alias l="ls -CF"