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:
+8
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user