1
0
Fork 0

Fix #2 PSReadLine ListView

This commit is contained in:
Florian RICHER (MrDev023) 2021-10-28 20:23:27 +02:00
parent 5fb93a3d3e
commit 5a594b6b17

View file

@ -1,3 +1,10 @@
# Check if powershell is start as Admin otherwise runAs Admin
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
$script = (Get-Location).Path + "\install.ps1"
Start-Process pwsh -Verb runAs "$script"
Break
}
# Install OhMyPosh # Install OhMyPosh
winget list -q JanDeDobbeleer.OhMyPosh winget list -q JanDeDobbeleer.OhMyPosh
if ($? -eq $False) { if ($? -eq $False) {
@ -40,6 +47,7 @@ Write-Output @'
$PSReadLineOptions = @{ $PSReadLineOptions = @{
EditMode = "Windows" EditMode = "Windows"
HistoryNoDuplicates = $True HistoryNoDuplicates = $True
PredictionViewStyle = "ListView"
PredictionSource = "History" PredictionSource = "History"
CompletionQueryItems = 5 CompletionQueryItems = 5
ShowToolTips = $True ShowToolTips = $True