mirror of
https://github.com/JG2401/PowerShellProfiles.git
synced 2026-08-28 20:20:14 +00:00
Create DeveloperProfile
This commit is contained in:
18
DeveloperProfile
Normal file
18
DeveloperProfile
Normal file
@@ -0,0 +1,18 @@
|
||||
Import-Module -Name Terminal-Icons
|
||||
|
||||
oh-my-posh init pwsh --config 'C:\Users\jonas\AppData\Local\Programs\oh-my-posh\themes\M365Princess.omp.json' | Invoke-Expression
|
||||
|
||||
#PSReadLine
|
||||
Import-Module PSReadLine #Needed to run the command below
|
||||
|
||||
$versionMinimum = [Version]'7.1.999'
|
||||
if(($host.Name -eq 'ConsoleHost') -and ($PSVersionTable.PSVersion -ge $versionMinimum))
|
||||
{
|
||||
Set-PSReadLineOption -PredictionSource HistoryAndPlugin
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-PSReadLineOption -PredictionSource History
|
||||
}
|
||||
|
||||
Set-PSReadLineOption -PredictionViewStyle ListView
|
||||
Reference in New Issue
Block a user