From 391b0a0b09b4a6b85a3c372f89274543db78766b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 11 Apr 2026 09:31:45 -0700 Subject: [PATCH] Add even shorter aliases for sending and pushing clones, and also allow them to handle Git repos! --- rc_shared.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rc_shared.sh b/rc_shared.sh index fa8e9e5..568878f 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -117,6 +117,22 @@ function today { date "+%Y%m%d"; } function log { echo -e "$1"; } function blog { echo -e "\n\n$1\n\n"; } +function pull { + if [[ -d .git ]]; then + git pull --recurse-submodules + else + pull-clone + fi +} + +function push { + if [[ -d .git ]]; then + git push && load-stage && load-prod + else + send-master + fi +} + # Enhance Bin Scripts # # MASTER and CLONE folders.