From b275fb5bdca777a9b49b164a853cd442c0de4278 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 18 Jul 2023 12:00:29 +0200 Subject: [PATCH] =?UTF-8?q?Terminal-Icons=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.ps1 | 19 +++++++++++++++++-- profile.ps1 | 4 ++++ 2 files changed, 21 insertions(+), 2 deletions(-) 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