Skip to content

Commit

Permalink
utility: Detect lsd and honor its GNU ls compatibility
Browse files Browse the repository at this point in the history
lsd (LSDeluxe) is a modern GNU compatibile alternative to ls. Detect if
it is aliased to ls and honor its GNU ls compatibility.
  • Loading branch information
indrajitr committed Sep 12, 2023
1 parent 64d46c4 commit 1b0cc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if zstyle -T ':prezto:module:utility' safe-ops; then
fi

# ls
if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*GNU *} ]]; then
if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*(GNU|lsd) *} ]]; then
# GNU Core Utilities

if zstyle -T ':prezto:module:utility:ls' dirs-first; then
Expand Down

0 comments on commit 1b0cc0a

Please # to comment.