Terminal-Icons hinzugefügt

This commit is contained in:
2023-07-18 12:00:29 +02:00
parent 64ec10f8c4
commit b275fb5bdc
2 changed files with 21 additions and 2 deletions

View File

@@ -235,13 +235,28 @@ function InstallSoftware {
Write-Host "Beginne mit der Insallation des Powershell Update Modul..." -ForegroundColor Blue Write-Host "Beginne mit der Insallation des Powershell Update Modul..." -ForegroundColor Blue
Try { Try {
Install-Module Install-Module PSReadLine -Force Install-Module PSReadLine -Force
Write-Host "Powershell update Modul erfolgreich installiert..." -ForegroundColor Green Write-Host "Powershell update Modul erfolgreich installiert..." -ForegroundColor Green
} }
Catch { Catch {
Write-Host "Fehler beim installieren des Powershell update Modul." -ForegroundColor Red Write-Host "Fehler beim installieren des Powershell update Modul." -ForegroundColor Red
} }
} }
# Powershell Modul für Terminal Icons
if (Get-Module -ListAvailable -Name Terminal-Icons ) {
Write-Hoste "Terminal-Icons Powershell Modul ist bereits installiert." -ForegroundColor Blue
}
else {
Write-Host "Beginne mit der Insallation des Terminal-Icons Modul..." -ForegroundColor Blue
Try {
Install-Module Terminal-Icons -Force
Write-Host "Terminal-Icons Modul erfolgreich installiert..." -ForegroundColor Green
}
Catch {
Write-Host "Fehler beim installieren des Terminal-Icons Modul." -ForegroundColor Red
}
}
# Powershell Modul für Updates # Powershell Modul für Updates
if (Get-Module -ListAvailable -Name PSWindowsUpdate) { if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Write-Hoste "Windows Update Powershell Modul ist bereits installiert." -ForegroundColor Blue Write-Hoste "Windows Update Powershell Modul ist bereits installiert." -ForegroundColor Blue

View File

@@ -2,5 +2,9 @@
Get-ChildItem ~/.winconfig/functions.ps1 | %{. $_ } | out-null Get-ChildItem ~/.winconfig/functions.ps1 | %{. $_ } | out-null
Get-ChildItem ~/.winconfig/aliases.ps1 | %{. $_ } | out-null Get-ChildItem ~/.winconfig/aliases.ps1 | %{. $_ } | out-null
# Lädt oh-my-posh # Lädt oh-my-posh
oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/powerlevel10k_rainbow.omp.json | Invoke-Expression oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/powerlevel10k_rainbow.omp.json | Invoke-Expression
# Lädt Terminal-Icons
Import-Module -Name Terminal-Icons