Skip to content

Commit

Permalink
feat: check for eza to use in $ZINIT[LIST_COMMAND] option (#636)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
Co-authored-by: HeroCC <HeroCC@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 25, 2025
1 parent 9cd774e commit 947c1ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ if [[ -z ${ZINIT[HOME_DIR]} ]]; then
fi

if [[ -z ${ZINIT[LIST_COMMAND]} ]]; then
if (( ${+commands[exa]} )); then
if (( ${+commands[eza]} )); then
ZINIT[LIST_COMMAND]='eza --color=always --tree --icons -L3'
elif (( ${+commands[exa]} )); then
ZINIT[LIST_COMMAND]='exa --color=always --tree --icons -L3'
elif (( ${+commands[tree]} )); then
ZINIT[LIST_COMMAND]='tree -L 3 -C --charset utf-8'
Expand Down

0 comments on commit 947c1ba

Please sign in to comment.