Auto-sync Windows: 2026-03-29 12:41

This commit is contained in:
habiwan committed 2026-03-29 12:41:50 +01:00
1 parent 812ef0eceb
commit d97cf649f6
1 file changed
+13
+13
View File
@@ -9,3 +9,16 @@ function fixomp {
}
fastfetch --logo "$HOME\hwk.txt"
oh-my-posh init pwsh | Invoke-Expression
function Sync-Shells {
Set-Location "C:\src\dotfiles"
Write-Host "Updating from GitHub..." -ForegroundColor Cyan
git pull origin main
Write-Host "Backing up Windows config..." -ForegroundColor Cyan
git add .
git commit -m "Auto-sync Windows: $(Get-Date -Format 'yyyy-MM-dd HH:mm')"
git push origin main
Write-Host "Done! System is in sync." -ForegroundColor Green
Set-Location $HOME
}
New-Alias -Name sync -Value Sync-Shells -Force