Auto-sync Pi: 2026-03-29 12:40

This commit is contained in:
habiwan committed 2026-03-29 12:40:46 +01:00
1 parent 895a9d5f2c
commit 812ef0eceb
1 file changed
+13
+13
View File
@@ -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'