Compare commits

...

2 commits

Author SHA1 Message Date
Lea
82fba449fd Add 'lss', an alias for ls that sorts by size 2025-07-12 19:01:59 +02:00
Lea
5f4942c730 Small gufix in decoder 2025-07-08 21:54:20 +02:00

View file

@ -71,6 +71,7 @@ function daisy_help()
echo -e " using sw and removes the backup." echo -e " using sw and removes the backup."
echo -e " - lsa: A simple alias for ls -lah." echo -e " - lsa: A simple alias for ls -lah."
echo -e " - lsn: A simple alias for ls -lah --sort=time --reverse." 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 " - 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 " - ched: Like chsh but for your editor (EDITOR env). A list"
echo -e " from which you can choose an installed editor" echo -e " from which you can choose an installed editor"
@ -190,6 +191,7 @@ function bak()
alias unbak="UNBAK_MODE=1 bak" alias unbak="UNBAK_MODE=1 bak"
alias lsa="ls -lah" alias lsa="ls -lah"
alias lsn="ls -lah --sort=time --reverse" alias lsn="ls -lah --sort=time --reverse"
alias lss="ls -lah --sort=size --reverse"
# Simple version of `cdf` # Simple version of `cdf`
function cdf() function cdf()
@ -218,9 +220,9 @@ function ched()
then then
if [[ $(realpath "$EDITOR") == "$EDITOR_REAL" ]]; if [[ $(realpath "$EDITOR") == "$EDITOR_REAL" ]];
then then
available_editors+=("$editor (current choice)" "$EDITOR_REAL") available_editors+=("$EDITOR_REAL" "$editor (current choice)")
else else
available_editors+=("$editor" "$EDITOR_REAL") available_editors+=("$EDITOR_REAL", "$editor")
fi fi
fi fi
done done
@ -313,7 +315,7 @@ function daisy_enc_multi()
function daisy_dec() function daisy_dec()
{ {
data=$(cat ${1:-/dev/stdin} | grep -v "#" ) data=$(cat ${1:-/dev/stdin} | grep -v "#" )
echo -e "$data" | cut -d "=" -f 2- | cut -b 2- | head -c -1 | base64 -d echo -e "$data" | cut -d "=" -f 2- | cut -b 2- | head -c -2 | base64 -d
} }
# Will only take a file and directory, sources it to find all encoded data # Will only take a file and directory, sources it to find all encoded data