Add 'lss', an alias for ls that sorts by size

This commit is contained in:
Lea 2025-07-12 19:01:59 +02:00
parent 5f4942c730
commit 82fba449fd

View file

@ -71,6 +71,7 @@ function daisy_help()
echo -e " using sw and removes the backup."
echo -e " - lsa: A simple alias for ls -lah."
echo -e " - lsn: A simple alias for ls -lah --sort=time --reverse."
echo -e " - lss: A simple alias for ls -lah --sort=size --reverse."
echo -e " - editbin: An alias for editx $\(which <x>\). Saves on typing."
echo -e " - ched: Like chsh but for your editor (EDITOR env). A list"
echo -e " from which you can choose an installed editor"
@ -190,6 +191,7 @@ function bak()
alias unbak="UNBAK_MODE=1 bak"
alias lsa="ls -lah"
alias lsn="ls -lah --sort=time --reverse"
alias lss="ls -lah --sort=size --reverse"
# Simple version of `cdf`
function cdf()
@ -218,9 +220,9 @@ function ched()
then
if [[ $(realpath "$EDITOR") == "$EDITOR_REAL" ]];
then
available_editors+=("$editor (current choice)" "$EDITOR_REAL")
available_editors+=("$EDITOR_REAL" "$editor (current choice)")
else
available_editors+=("$editor" "$EDITOR_REAL")
available_editors+=("$EDITOR_REAL", "$editor")
fi
fi
done