This commit is contained in:
Sam Hardeman 2026-03-08 21:02:48 +01:00
commit 84f55f82b8
2 changed files with 7 additions and 12 deletions

View file

@ -1,5 +1,5 @@
---*This project is still under heavy development!*--- ---*This project is still under heavy development!*---
\Please do not delete this file, as it is used to display help information. Please do not delete this file, as it is used to display help information.
# L A C K A D A I S I C A L # L A C K A D A I S I C A L
A collection of easy-to-understand, easy-to-use scripts, functions and aliases. Designed to be beginner-friendly but also useful! A collection of easy-to-understand, easy-to-use scripts, functions and aliases. Designed to be beginner-friendly but also useful!

View file

@ -1,4 +1,3 @@
#!/usr/bin/bash
#!/usr/bin/env -S echo "This file can only be sourced, not run stand-alone." #!/usr/bin/env -S echo "This file can only be sourced, not run stand-alone."
# LACKADAISICAL SOURCE-ABLE FILE # LACKADAISICAL SOURCE-ABLE FILE
@ -25,6 +24,7 @@ function ld_dbg
then then
$@ $@
fi fi
echo
} }
# Variables for use in other utilities # Variables for use in other utilities
@ -316,13 +316,7 @@ function daisy_reload
function ldrc function ldrc
{ {
if [[ $1 == "-e" ]]; daisy_editor "$LD_SOURCE_FILE"
then
daisy_editor "$LD_ESOURCEFILE"
else
daisy_editor "$LD_SOURCE_FILE"
fi
LD_INTERNAL=0 source "$LD_SOURCE_FILE" LD_INTERNAL=0 source "$LD_SOURCE_FILE"
} }
@ -485,6 +479,7 @@ function clip
# Export the variable # Export the variable
export LD_CLIP="$data" export LD_CLIP="$data"
echo "Variable set to \"$LD_CLIP\"."
} }
function daisy_unalias function daisy_unalias
@ -543,7 +538,7 @@ function daisy_backup
for f in `find "$LD_CONFIG_FOLDER" -name "*.src" -type f`; for f in `find "$LD_CONFIG_FOLDER" -name "*.src" -type f`;
do do
bak "$f" bak "$f"
done done
} }
function daisy_clear function daisy_clear
@ -555,7 +550,7 @@ function daisy_clear
echo "Removing config file: $f" echo "Removing config file: $f"
rm -rf "$f" rm -rf "$f"
done done
echo "Config cleared. Use 'daisy_restore' if you would like to undo this." echo "Config cleared. Use 'daisy_restore' if you would like to undo this."
daisy_reload daisy_reload
} }
@ -567,7 +562,7 @@ function daisy_restore
unbak "$f" unbak "$f"
bak "$f" 1>/dev/null bak "$f" 1>/dev/null
done done
echo "Config restored. Backups have been retained." echo "Config restored. Backups have been retained."
daisy_reload daisy_reload
} }