From 954efc645abf5b278843a4d2fd4dde3bb50d712d Mon Sep 17 00:00:00 2001 From: Nahil Rasheed <88521572+nahilrasheed@users.noreply.github.com> Date: Thu, 23 May 2024 22:47:39 +0530 Subject: [PATCH] Fixed sorting in ls aliases Made changes so that when using `lc` and `lu` to sort `ls` by 'change time' and 'access time' respectively, it actually sorts it instead of displaying the information and sorting alphabetically. --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index bd53c78..9a44a61 100644 --- a/.bashrc +++ b/.bashrc @@ -156,8 +156,8 @@ alias la='ls -Alh' # show hidden files alias ls='ls -aFh --color=always' # add colors and file type extensions alias lx='ls -lXBh' # sort by extension alias lk='ls -lSrh' # sort by size -alias lc='ls -lcrh' # sort by change time -alias lu='ls -lurh' # sort by access time +alias lc='ls -ltcrh' # sort by change time +alias lu='ls -lturh' # sort by access time alias lr='ls -lRh' # recursive ls alias lt='ls -ltrh' # sort by date alias lm='ls -alh |more' # pipe through 'more'