mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 08:08:00 +00:00
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.
This commit is contained in:
parent
64d46c407a
commit
1b0cc0a219
@ -76,7 +76,7 @@ if zstyle -T ':prezto:module:utility' safe-ops; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*GNU *} ]]; then
|
if [[ ${(@M)${(f)"$(ls --version 2>&1)"}:#*(GNU|lsd) *} ]]; then
|
||||||
# GNU Core Utilities
|
# GNU Core Utilities
|
||||||
|
|
||||||
if zstyle -T ':prezto:module:utility:ls' dirs-first; then
|
if zstyle -T ':prezto:module:utility:ls' dirs-first; then
|
||||||
|
Loading…
Reference in New Issue
Block a user