Minor fixes as well as clean-up surrounding internal functions.

This commit is contained in:
Sam Hardeman 2025-12-13 04:16:43 +01:00
parent 405c1e7244
commit e3a2efdb43
12 changed files with 218 additions and 134 deletions

View file

@ -57,11 +57,11 @@ These are the included binaries and utilities:
- newday:
A basic but powerful journaling system. Recommended
to be set up via crontab. Can be used for everything
from diaries to general file storage to even BTRFS
from diaries to general file storage to even BTRFS
snapshots.
- own:
A simple utility. It's effectively an alias for
"sudo chown -R user:user" on the target dir/file.
A simple utility. It's effectively an alias for
"sudo chown -R user:user" on the target dir/file.
Root permissions required!
- shrc:
This tool allows you to edit the RC file for your
@ -84,15 +84,15 @@ These are the included binaries and utilities:
a copy with a .bak suffix. Unbak reverses the process
by using sw and removes the backup.
- lsa:
A simple alias for ls -lah.
A simple alias for `ls -lah`.
- lsn:
A simple alias for ls -lah --sort=time --reverse.
A simple alias for `ls -lah --sort=time --reverse`.
- lss:
A simple alias for ls -lah --sort=size --reverse.
A simple alias for `ls -lah --sort=size --reverse`.
- editbin:
An alias for editx $\(which <x>\). Saves on typing.
An alias for `editx $\(which <x>\)`. Saves on typing.
- editpeco:
This function uses peco+tree like 'cdp', but opens
This function uses peco+tree like `cdp`, but opens
your editor on the selected file(s). After you exit
your editor(s), you are returned to peco where you left
off.
@ -103,37 +103,56 @@ These are the included binaries and utilities:
- cdf:
Use fzf to find a file and then cd to its location.
- cdp:
Similar to 'cdf' but uses tree+peco for the query.
Similar to `cdf` but uses tree+peco for the query.
- ldrc:
Edits daisy.source and re-sources it, similarly to shrc.
- daisy_init:
Alias for directly sourcing this file from any
LACKADAISICAL binary. You may use this yourself.
- daisy_reload:
Re-sources daisy.source. Essentially `ldrc` without
editing.
- grab:
Alias for "awk '{print $x}'", where x is a number.
E.g. "echo 'a b c' | grab 2" returns 'b'.
Alias for `awk '{print $x}'`, where x is a number.
E.g. `echo 'a b c' | grab 2` returns 'b'.
- daisy_cbin:
Contains the name of the current LACKADAISICAL
binary being run.
- daisy_enc:
Converts a file/stdin to a base64 block that can be
decoded by passing the output(s) to daisy_dec.
decoded by passing the output(s) to `daisy_dec`.
The output of `daisy_enc` can be concatenated with the
output of another encoded file to create a multi-file
base64 archive similar to `daisy_enc_multi`
- daisy_enc_multi:
A version of daisy_enc that encodes multiple
files and outputs daisy_base64_data blocks to a file
or stdout.
A version of `daisy_enc` that encodes multiple
files and outputs `daisy_base64_data` blocks to a file
or stdout. These outputs can be concatenated as well.
- daisy_dec:
Converts daisy_base64_data blocks back to the form
Converts `daisy_base64_data` blocks back to the form
it was in originally.
- daisy_dec_multi:
A version of daisy_dec that runs on multiple input
blocks that are either stored in a file or stdin.
- daisy_alias/daisy_unalias:
- daisy_alias:
This utility sets persistent user aliases stored in
.daisy_aliases in the lackadaisical config folder.
They will remain persistent until unaliased.
Call 'daisy_alias' without parameters to get a list.
Use 'daisy_unalias' to remove an alias.
"~/.config/lackadaisical/aliases.src".
They will remain persistent until unaliased with
daisy_unalias.
Call daisy_alias using '' instead of "".
E.g. `daisy_alias hello='echo "Hello!"' - instead of
`daisy_alias hello="echo \"Hello!\"".
This prevents an early invocation of possible nested
aliases.
Call this function without arguments to get a list of
registered aliases as well as indices for easy unaliasing
using `daisy_unalias`.
- daisy_unalias:
This utility removes an alias from those registered with
daisy_alias. It accepts either an alias name, or an index
given by calling `daisy_alias` without arguments.
In case of a mistake, a backup is made under the filename
"~/.config/lackadaisical/aliases.src.bak".
To restore this file, you can use these commands:
`unbak ~/.config/lackadaisical/aliases.src'
`daisy_reload`
- daisy_list:
List all available commands without description.
--- END OF DAISY HELP ---