2026-03-29 12:26:01 +01:00
|
|
|
function fixomp {
|
|
|
|
|
$profileContent = @(
|
|
|
|
|
'fastfetch --logo "$HOME\hwk.txt"',
|
|
|
|
|
'oh-my-posh init pwsh | Invoke-Expression',
|
|
|
|
|
'# To repair this file again, type: fixomp'
|
|
|
|
|
)
|
|
|
|
|
$profileContent | Out-File -FilePath $PROFILE -Encoding utf8
|
|
|
|
|
Write-Host "Profile repaired! Restart your terminal to see changes." -ForegroundColor Green
|
|
|
|
|
}
|
2026-03-29 11:58:54 +01:00
|
|
|
fastfetch --logo "$HOME\hwk.txt"
|
|
|
|
|
oh-my-posh init pwsh | Invoke-Expression
|
2026-03-29 12:41:50 +01:00
|
|
|
|
|
|
|
|
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
|