From b5c8a3f89468acd79e446c9af21a2acdbf13e960 Mon Sep 17 00:00:00 2001 From: Sam Hardeman Date: Sat, 13 Sep 2025 17:24:48 +0200 Subject: [PATCH] Some bugfixes in cdz and some extra information in daisy.source / daisy_help about binbox, instability of certain tools, and more about cdz's support for archivemount. --- cdz | 2 +- daisy.source | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/cdz b/cdz index eb2a9c8..70afac9 100755 --- a/cdz +++ b/cdz @@ -53,7 +53,7 @@ then istar=0 fi -if (( $NO_ARCHIVEMOUNT == 1 )); then +if [[ $NO_ARCHIVEMOUNT -eq 1 ]]; then hasmounter=1 fi diff --git a/daisy.source b/daisy.source index 85407ba..0da1ccf 100755 --- a/daisy.source +++ b/daisy.source @@ -23,8 +23,9 @@ function daisy_help() echo -e "Thanks for installing LACKADAISICAL!" echo -e "This project aims to provide useful utilities as well as learning" echo -e "material." + echo -e "" echo -e "It is still under heavy development, not all of the things on this" - echo -e "list are present/implemented." + echo -e "list are present/implemented. Utils marked with * are incomplete." echo -e "" echo -e "===================================================================" echo -e "" @@ -37,7 +38,12 @@ function daisy_help() echo -e " - calm: Reduce a process niceness to 0." echo -e " - cdz: This utility extracts an archive to /tmp and changes" echo -e " directory to it in a new shell instance. Upon exit," - echo -e " the files are wiped." + echo -e " the files are wiped. If \`archivemount\` is present," + echo -e " it will be used to mount the archive instead! You can" + echo -e " bypass this behavior by specifying an env value of;" + echo -e " NO_ARCHIVEMOUNT=1. The standard script supports zip," + echo -e " tarballs, and rar archives. We recommend relying on" + echo -e " \`archivemount\` if you have it installed." echo -e " - editx: Uses your standard CLI editor to create/modify a" echo -e " file and make it executable." echo -e " - filewait: This tool is given a filename of a file that does" @@ -60,6 +66,10 @@ function daisy_help() echo -e " - what: This is a tool similar to which and others, the key" echo -e " difference is that it returns partial matches. It can" echo -e " be used to search for binaries." + echo -e " -*binbox: This tool can be used to pack bash scripts into one" + echo -e " big megascript, much like how \`busybox\` works." + echo -e " You can also make symlinks to it to invoke a specific" + echo -e " script (current symlinks do not work well)." echo -e "" echo -e "===================================================================" echo -e "" @@ -75,17 +85,17 @@ function daisy_help() echo -e " from which you can choose an installed editor" echo -e " (CLI or GUI) is shown." echo -e " - cdf: Use fzf to find a file and then cd to its location." - echo -e " - ldrc: Edits this file and source it, similarly to shrc." + echo -e " - ldrc: Edits this file and sources it, similarly to shrc." echo -e " - daisy_init: Alias for directly sourcing this file from any" echo -e " LACKADAISICAL binary. You may use this yourself." echo -e " - daisy_cbin: Contains the name of the current LACKADAISICAL" echo -e " binary being run." - echo -e " - daisy_enc: Converts a file/stdin to a base64 block that can be" + echo -e " -*daisy_enc: Converts a file/stdin to a base64 block that can be" echo -e " decoded by passing the output(s) to daisy_dec." echo -e " - *_multi: A version of daisy_enc that runs encodes multiple" echo -e " files and outputs daisy_base64_data blocks to a file" echo -e " or stdout." - echo -e " - daisy_dec: Converts daisy_base64_data blocks back to the form" + echo -e " -*daisy_dec: Converts daisy_base64_data blocks back to the form" echo -e " it was in originally." echo -e " - *_multi: A version of daisy_dec that runs on multiple input" echo -e " blocks that are either stored in a file or stdin."