From 12d006660defcd4ac7de8a8c40a0b12b508d64d5 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 30 Jan 2026 22:22:57 +0100 Subject: [PATCH] mac ls fix --- .zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 353ef1f..185f2c0 100644 --- a/.zshrc +++ b/.zshrc @@ -123,11 +123,16 @@ if (( $+commands[fzf] )); then fi # ls defaults -if (( $+commands[dircolors] )); then +if (( $+commands[gls] )); then + [[ -z "$LS_COLORS" ]] && eval "$(gdircolors --sh)" + alias ls='gls --group-directories-first --color=auto' +elif (( $+commands[dircolors] )); then [[ -z "$LS_COLORS" ]] && eval "$(dircolors --sh)" alias ls='ls --group-directories-first --color=auto' else - alias ls='ls -F' + export CLICOLOR=1 + export LSCOLORS=ExGxFxdaCxDaDahbadacec + alias ls='ls -GF' fi # aliases: git