OO verbessert und ahk hinzugefügt.

This commit is contained in:
2023-04-14 08:47:18 +02:00
parent cf8c655361
commit a7cd44016f
4 changed files with 69 additions and 10 deletions

View File

@@ -11,6 +11,14 @@ function allupdates {
Set-Location $HOME/.winconfig ; ./OOSU10.exe configs/ooshutup10/ooshutup10.cfg /quiet
Write-Host "Ziehe aktuelle winconfig von git..." -ForegroundColor Blue
Set-Location $HOME/.winconfig ; git pull
Write-Host "Aktuallisiere AutoHokey Scripts ..." -ForegroundColor Blue
$sourceDir = "$HOME\.winconfig\configs\autohotkey"
$targetDir = "$HOME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"
Get-ChildItem -Path $targetDir -Filter *.ahk -Recurse | Remove-Item -Force -ErrorAction SilentlyContinue
Get-ChildItem -Path $sourceDir | ForEach-Object {
$linkPath = Join-Path $targetDir $_.Name
New-Item -ItemType SymbolicLink -Path $linkPath -Target $_.FullName -ErrorAction SilentlyContinue | Out-Null
}
Write-Host "Update aller Powershell Module..." -ForegroundColor Blue
Write-Host -ForegroundColor Blue 'Get all PowerShell modules'
function Remove-OldPowerShellModules {
@@ -146,7 +154,4 @@ function allupdates {
}
}
}
# ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt
Write-Host "Spiele aktuelle OOSHUTUP10 config ein... " -ForegroundColor Blue
Set-Location $HOME/.winconfig ; ./OOSU10.exe configs/ooshutup10/ooshutup10.cfg /quiet
}