From 50e06f919682e00e1069737a24f4c6564568d14f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 28 Mar 2026 14:24:34 -0700 Subject: [PATCH] Move `now` and `today` to shared env. Export all functions. --- rc_shared.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rc_shared.sh b/rc_shared.sh index 1b86362..27b87b6 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -76,7 +76,9 @@ function goodbye { update -y; bye; } function clone { rsync -auPhz --delete --exclude '.gradle' --exclude 'app/build' "$@" } -export -f clone + +function now { date "+%Y%m%d-%H%M%S"; } +function today { date "+%Y%m%d"; } # Enhance Bin Scripts # @@ -90,7 +92,6 @@ function send-masters { done echo -e "\n`date` - Done checking for MASTER directories." } -export -f send-masters # Audio # @@ -315,6 +316,9 @@ alias vta="v2a" alias pull-audio="v2a" alias pa="v2a" +# Export all functions! # +eval "$(declare -F | sed 's/-f /-fx /')" + ## Complete! ##