I just want PowerShell to be black text on a white background. However, PowerShell v5 highlights my commands and makes them yellow, which is impossible to see. Is there a way to turn off ALL syntax highlighting in PowerShell?
I have beautified my Powershell according to this blog, but the Operator and Parameter are grey as follows:
So I change their colors by Set-PSReadlineOption:
Set-PSReadlineOption -TokenKind Operator -ForegroundColor Yellow
but get the following…
I'm using great PSReadLine module for Powershell and I really like that is persist my history of commands. But I need to reinstall my system. What is the easiest way to save this history (probably to file) an load it after fresh install of…
I have installed the PSReadline module for PowerShell to get Keybindings from Bash in PowerShell. I enabled Vi-Mode and it works good.
The problem is: In Vim I always use j, k to exit insert-mode. That means: First I type j and then k very fast. If…
I upgraded my PowerShell from 4.0 to 5.0 (Feb. 2016 release) on my Windows 7 SP1 machine.
The $PSVersionTable shows PowerShell 5.0, but the shell does not have the same features as PowerShell 5.0 in Windows 10.
Differences:
Keyword…
I added Vim bindings to my Powershell using PSReadline module as shown in this Server Fault post. The problem after this was that there wasn't any visual indicator for the different modes of Vim.
I just wanted different cursors for the 'command' and…
I'm using the powershell VI mode via
Set-PSReadlineOption -EditMode vi
It is awsome to be able to edit the line using VI commands however there is one thing that is annoying. When using the up and down arrows to navigate history the cursor always…
I am currently playing with the PSReadLine module options in PowerShell. In particular I am setting up a custom color theme. I have been able to set most of the colors I require using the following syntax as an example:
Set-PSReadLineOption…
Works on Win 10 but on server 2012 R2 its not there.
PS> Get-PSReadlineKeyHandler
Get-PSReadlineKeyHandler : The term 'Get-PSReadlineKeyHandler' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the…
In PSReadLine 2.2.2 for PowerShell 7.2.11, On Windows, you can also use the Alt+? key chord to show the function bound to the next key chord you enter.
Conversely, is there a key or PS command that will show keys for a given function?
For example,…
Get-PSReadLineKeyHandler : A parameter cannot be found that matches parameter name 'Key'.
At line:380 char:43
+ if ((Get-PSReadLineKeyHandler -Key Spacebar).Function -eq ...
+ ~~~~
+…
While executing commands in PowerShell it's automatically suggesting texts
How can I disable these suggestions and also in future if I want to enable the suggestions how can I do it?
When running Powershell 5.1.19041.1682 in the Powershell_ISE Version 10.0.19041.1 (Windows 10) host the HistorySavePath property is set to a full file path however the file is never created after running commands in the ISE window. I have executed…
I have recently got myself a new Windows 11 laptop, and started exploring powershell. Never used it before on Windows, but I'm a frequest user of zsh in Mac so not completely new.
I upgraded Powershell to 7.2.1, but noticed that the auto-suggestion…
tl;dr
I want to find a Powershell version of the bash edit-and-execute-command widget or the zsh edit-command-line widget.
Background
Short commands get executed directly on the command-line, long complicated commands get executed from scripts.…