diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 08b2584..3c87d55 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -1,15 +1,23 @@ -if (-not (Get-Module -ListAvailable -Name Terminal-Icons)) { - Import-Module -Name Terminal-Icons -} -if (-not (Get-Module -ListAvailable -Name PSReadLine)) { - Import-Module -Name PSReadLine -} if (-not (Get-Module -ListAvailable -Name tiPS)) { Install-Module -Name tiPS -Scope CurrentUser } if (-not (Get-Module -ListAvailable -Name PSScriptAnalyzer)) { Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser } +if (-not (Get-Module -ListAvailable -Name Terminal-Icons)) { + Install-Module -Name Terminal-Icons -Scope CurrentUser +} +if (-not (Get-Module -ListAvailable -Name PSReadLine)) { + Install-Module -Name PSReadLine -Force -Scope CurrentUser +} + + +if (-not (Get-Module -ListAvailable -Name Terminal-Icons)) { + Import-Module -Name Terminal-Icons +} +if (-not (Get-Module -ListAvailable -Name PSReadLine)) { + Import-Module -Name PSReadLine +} # kali.omp.json oh-my-posh --init --shell pwsh --config "$env:OneDrive\Documents\PowerShell\prompt\themes\easy-term.omp.json" | Invoke-Expression