From 812ef0eceb79fb6924df684881f3e2b334a52347 Mon Sep 17 00:00:00 2001 From: habiwan Date: Sun, 29 Mar 2026 12:40:46 +0100 Subject: [PATCH] Auto-sync Pi: 2026-03-29 12:40 --- rpi/.bashrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/rpi/.bashrc b/rpi/.bashrc index f168c57..edc9797 100644 --- a/rpi/.bashrc +++ b/rpi/.bashrc @@ -233,3 +233,16 @@ function retropie_welcome() { retropie_welcome # RETROPIE PROFILE END +sync-shells() { + cd ~/dotfiles + echo "Updating from GitHub..." + git pull origin main + echo "Backing up Pi config..." + cp ~/.bashrc ~/dotfiles/rpi/ + git add . + git commit -m "Auto-sync Pi: $(date +'%Y-%m-%d %H:%M')" + git push origin main + echo "Done! System is in sync." + cd - > /dev/null +} +alias sync='sync-shells'