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