feat: prefer eza over lsd in all ls-related functions

fix: clean stale wraps metadata
fix: ensure user functions take precedence over CachyOS overrides
This commit is contained in:
2026-04-26 02:35:27 -04:00
parent 9008e7b5ae
commit 01c22e7a4d
8 changed files with 45 additions and 16 deletions
+4 -2
View File
@@ -1,8 +1,10 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function l --wraps='lsd --almost-all --long' --description 'alias l=lsd --almost-all --long'
if which lsd >/dev/null 2>&1
function l --description 'Long listing, all files'
if which eza >/dev/null 2>&1
eza --all --long --git --header --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd --almost-all --long --git --header --hyperlink=auto $argv
else
command ls --color=auto --almost-all -l $argv
+4 -2
View File
@@ -1,8 +1,10 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function lS --wraps='lsd --oneline --classic' --description 'alias lS=lsd --oneline --classic'
if which lsd >/dev/null 2>&1
function lS --description 'Size-sorted listing'
if which eza >/dev/null 2>&1
eza --sort=size --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd --oneline --classic $argv
else
command ls $argv
+5 -3
View File
@@ -1,10 +1,12 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function llm --wraps='lsd --timesort --long' --description 'alias llm=lsd --timesort --long'
if which lsd >/dev/null 2>&1
function llm --description 'Long listing sorted by modification time'
if which eza >/dev/null 2>&1
eza --long --sort=modified --git --header --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd --timesort --long --git --header --hyperlink=auto $argv
else
command ls color=auto -l $argv
command ls --color=auto -lt $argv
end
end
+5 -2
View File
@@ -1,8 +1,11 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function ls --wraps=lsd --wraps='lsd --hyperlink=auto' --description 'alias ls=lsd'
if which lsd >/dev/null 2>&1
function ls --description 'List files'
if which eza >/dev/null 2>&1
eza --oneline --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd --hyperlink=auto $argv
else
command ls --color=auto $argv
+4 -2
View File
@@ -1,8 +1,10 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function lstree --wraps='ls --tree' --description 'alias lstree=ls --tree'
if which lsd >/dev/null 2>&1
function lstree --description 'Full recursive tree listing'
if which eza >/dev/null 2>&1
eza --tree --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd --tree --hyperlink=auto $argv
else
command ls --color=auto -R $argv
+4 -2
View File
@@ -1,8 +1,10 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function lt --wraps='lsd --tree --depth=2' --description 'alias lt=lsd --tree --depth=2'
if which lsdq >/dev/null 2>&1
function lt --description 'Tree listing, depth 2'
if which eza >/dev/null 2>&1
eza --tree --level=2 --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd --tree --depth=2 --hyperlink=auto $argv
else
command ls --color=auto -R $argv
+8 -2
View File
@@ -1,6 +1,12 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
function ltr --wraps='lsd -ltr' --description 'alias ltr=lsd -ltr'
lsd -ltr $argv
function ltr --description 'Reversed time-sorted listing'
if which eza >/dev/null 2>&1
eza --long --sort=modified --reverse --icons --color=auto --hyperlink $argv
else if which lsd >/dev/null 2>&1
lsd -ltr $argv
else
command ls --color=auto -ltr $argv
end
end