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