From 5f4942c73062287b07d515b7063d5a3b9b2a9105 Mon Sep 17 00:00:00 2001 From: Lea Date: Tue, 8 Jul 2025 21:54:20 +0200 Subject: [PATCH 1/2] Small gufix in decoder --- daisy.source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daisy.source b/daisy.source index 535e9ba..bcd0b9d 100755 --- a/daisy.source +++ b/daisy.source @@ -313,7 +313,7 @@ function daisy_enc_multi() function daisy_dec() { 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 From 82fba449fd2003702f49c4f0f53464e0018e6bad Mon Sep 17 00:00:00 2001 From: Lea Date: Sat, 12 Jul 2025 19:01:59 +0200 Subject: [PATCH 2/2] Add 'lss', an alias for ls that sorts by size --- daisy.source | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daisy.source b/daisy.source index bcd0b9d..d2957e1 100755 --- a/daisy.source +++ b/daisy.source @@ -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 \). 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