From 8f9bdfbb304dea1c8fe6eb3dbbde6b8e2e47b8bb Mon Sep 17 00:00:00 2001 From: root Date: Fri, 21 Nov 2025 15:49:28 +0000 Subject: [PATCH] - Minor text fix to README.md. - Fix to enumeration of files in lackadaisical config folder. --- README.md | 2 +- daisy.source | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 06dd03e..393d4b3 100755 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ These are the included binaries and utilities: Alias for directly sourcing this file from any LACKADAISICAL binary. You may use this yourself. - grab: - Alias for awk "'{print $x}'", where x is a number. + 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 diff --git a/daisy.source b/daisy.source index 65e1f69..73b9f4d 100755 --- a/daisy.source +++ b/daisy.source @@ -53,8 +53,12 @@ then NEW_INSTALL=1 fi +# Functions for aliases that are added once, but always available +daisy_aliasfile="$DAISY_CONFIG_FOLDER"/.daisy_aliases +touch $daisy_aliasfile + # Source everything in the config folder -for f in "$DAISY_CONFIG_FOLDER"/*; do +for f in "$DAISY_CONFIG_FOLDER"; do [ -f "$file" ] && source "$f" done @@ -277,10 +281,6 @@ function grab awk '{print $'$1'}' } -# Functions for aliases that are added once, but always available -daisy_aliasfile="$DAISY_CONFIG_FOLDER"/.daisy_aliases -touch $daisy_aliasfile - function daisy_unalias { unalias_param=$@