From 226dc8bf97cb98e618d270bef6002b67ff54c358 Mon Sep 17 00:00:00 2001 From: JG2401 <76785435+JG2401@users.noreply.github.com> Date: Sat, 8 Jun 2024 21:51:18 +0200 Subject: [PATCH] Create DeveloperProfile --- DeveloperProfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 DeveloperProfile diff --git a/DeveloperProfile b/DeveloperProfile new file mode 100644 index 0000000..fa37aba --- /dev/null +++ b/DeveloperProfile @@ -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