Diverses
This commit is contained in:
@@ -54,7 +54,7 @@ do {
|
||||
}
|
||||
}
|
||||
} '2' {
|
||||
# Winget config installieren
|
||||
# Winget config installieren.
|
||||
if (-not(Test-Path -Path '~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json' -PathType leaf)){
|
||||
Write-Host "Lege Winget config an." -ForegroundColor Green
|
||||
New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null
|
||||
@@ -64,6 +64,7 @@ do {
|
||||
Remove-Item "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
|
||||
New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null
|
||||
}
|
||||
# Software installieren.
|
||||
foreach ($utility in $toInstall) {
|
||||
$ergebnis = winget list --id $utility
|
||||
if ($ergebnis -eq "Es wurde kein installiertes Paket gefunden, das den Eingabekriterien entspricht.") {
|
||||
@@ -118,7 +119,7 @@ do {
|
||||
# Windows Terminal Settings
|
||||
Write-Host "Richte Windows Terminal config ein..." -ForegroundColor Blue
|
||||
Try {
|
||||
Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/terminal/settings.json"
|
||||
Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/terminal/settings.json" | Out-Null
|
||||
Write-Host "Windows Terminal config erfolgreich eingerichtet" -ForegroundColor Green
|
||||
}
|
||||
Catch {
|
||||
@@ -153,7 +154,7 @@ do {
|
||||
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
|
||||
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
|
||||
Try {
|
||||
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1"
|
||||
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
||||
Write-Host "Powershell config erfolgreich verlinkt."
|
||||
}
|
||||
Catch {
|
||||
|
||||
Reference in New Issue
Block a user