From 5c6691c32ce3a8bdb9bdfc3a134fb4b7c001ffd1 Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 27 Apr 2026 13:28:14 -0400 Subject: [PATCH] fix: correct sort direction Use reverse sorting by time for eza in `ltr` function. Note: eza sorts oldest-to-newest by default, while lsd requires the --reverse flag. When the --reverse flag is used in eza the listing is done newest-to-oldest which is not the intended direction. --- functions/ltr.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/ltr.fish b/functions/ltr.fish index d3b80b7..ba3f3d4 100644 --- a/functions/ltr.fish +++ b/functions/ltr.fish @@ -3,7 +3,7 @@ function ltr --description 'Reversed time-sorted listing' if which eza >/dev/null 2>&1 - eza --long --all --sort=modified --reverse --icons --hyperlink --color=auto --color-scale=age --color-scale-mode=gradient $argv + eza --long --all --sort=modified --icons --hyperlink --color=auto --color-scale=age --color-scale-mode=gradient $argv else if which lsd >/dev/null 2>&1 lsd --long --all --sort=time --reverse --color=auto --hyperlink=always $argv else