Fix #2 PSReadLine ListView
This commit is contained in:
parent
5fb93a3d3e
commit
5a594b6b17
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue