diff --git a/daisy.source b/daisy.source index 535e9ba..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 @@ -313,7 +315,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