Questions tagged [psreadline]

Use for questions about PSReadLine, an alternative command line editor for PowerShell.

Related tags

References

41 questions
1
vote
1 answer

VSCode - Integrated Terminal - PowerShell - Syntax Highlighting - PSReadLine

On a Windows 7 machine, on the current version of VS Code and PowerShell 5.0.10586.117. The integrated terminal for PowerShell has no color syntax highlighting. Changing the PSReadLine options has not effect and revert back when restarting the…
KevinW
  • 73
  • 1
  • 8
1
vote
1 answer

How do I load SamplePSReadlineProfile.ps1 in my profile?

I'm new to PowerShell and installed PSReadline (via PsGet). Now I want to add the sample key binding in my profile file, should I just copy & paste the contents or is it better to load the file? How do I do that?
IttayD
  • 28,271
  • 28
  • 124
  • 178
0
votes
1 answer

How to enable history picklist while typing

I'm trying to become one with PowerShell and found a feature that I really love but do not understand how to make it work consistently. PowerShell can go into a mode where it shows an incrementally updated picklist of history items as you type. You…
JJF
  • 2,681
  • 2
  • 18
  • 31
0
votes
1 answer

How to partially autocomplete?

I'm using PSReadLine version 2.2.6 (with PowerShell 7.3.) with the following configuration options: Set-PSReadLineOption -PredictionSource History Set-PSReadLineOption -EditMode Windows Imagine that in my history, I have previously…
herve
  • 525
  • 6
  • 17
0
votes
1 answer

How to not save error commands in history in powershell?

Every command I enter are saved in history but I want not to save the command that are shown error in the shell. what should i add in the powershell config to do that
0
votes
1 answer

PSReadLine throw exception after upgrading to PS 7.2

Exception thrown after upgrading to Powershell 7.2.0 while using PSReadLine ### Environment PSReadLine: 2.2.0-beta1 PowerShell: 7.2.0 OS: Microsoft Windows 10.0.22000 BufferWidth: 309 BufferHeight: 55 Last 0 Keys System.TypeLoadException: Could…
Sayyed Dawood
  • 607
  • 7
  • 15
0
votes
1 answer

PSReadLine history doesn't load

I tried to use psreadline today. There is something i don't understand is the history command. When I run Set-PSReadLineOption -PredictionSource The history suggestions start showing up. I close the terminal ps, open it again, no history…
Oggy
  • 45
  • 3
0
votes
0 answers

How to stop PSReadLine from changing cursor in powershell 7.1.3?

The Problem: The problem is that when I change the cursor PowerShell 7.1.3 to the "Vertical Bar" but then as soon as I type something or press enter in the terminal the cursor changes back to "Legacy Style". Things I have tried: I have tried…
Zues
  • 307
  • 5
  • 12
0
votes
1 answer

Can I get homebrew autocompletion in powershell?

I used to use zsh, but I've got some cross-platform scripts written in pwsh. As a macOS user, I use homebrew constantly. The thing bothers me most is that homebrew official doesn't provide pwsh autocompletion. How can I get one?
Wongboo
  • 124
  • 1
  • 6
0
votes
1 answer

PSReadLine Breaks Arrow-Down History After Arrow-Up Previous Command Execution

I'm wondering if anybody else has noticed that having the PSReadLine module installed in PowerShell seems to break the native ability it has to allow us to arrow-down through subsequent commands after using arrow-up to find and execute a previous…
dwillis77
  • 413
  • 3
  • 7
-1
votes
0 answers

Why do parameter tab-autocomplete results show provider (e.g. filesystem) objects by default?

You can define auto-completion results for parameter values in a variety of different ways such as using dynamic parameters, the CompletionResult class within a parameter's ArgumentCompleter attribute declaration, the ValidateSet attribute, etc. If…
Paul π
  • 133
  • 11
1 2
3