From 1b0cc0a219875eb16b75221167e9916820a2956a Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Mon, 11 Sep 2023 21:51:45 -0500 Subject: [PATCH] utility: Detect lsd and honor its GNU ls compatibility lsd (LSDeluxe) is a modern GNU compatibile alternative to ls. Detect if it is aliased to ls and honor its GNU ls compatibility. --- modules/utility/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index c901591..7e2e14e 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -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