diff --git a/config.ps1 b/config.ps1 index 44fade7..fcd04cb 100644 --- a/config.ps1 +++ b/config.ps1 @@ -235,13 +235,28 @@ function InstallSoftware { Write-Host "Beginne mit der Insallation des Powershell Update Modul..." -ForegroundColor Blue Try { - Install-Module Install-Module PSReadLine -Force + Install-Module PSReadLine -Force Write-Host "Powershell update Modul erfolgreich installiert..." -ForegroundColor Green } Catch { 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 if (Get-Module -ListAvailable -Name PSWindowsUpdate) { Write-Hoste "Windows Update Powershell Modul ist bereits installiert." -ForegroundColor Blue diff --git a/profile.ps1 b/profile.ps1 index de560bf..484fc38 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -2,5 +2,9 @@ Get-ChildItem ~/.winconfig/functions.ps1 | %{. $_ } | out-null Get-ChildItem ~/.winconfig/aliases.ps1 | %{. $_ } | out-null + + # 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 +# Lädt Terminal-Icons +Import-Module -Name Terminal-Icons