Configuring PSReadLine in PowerShell Core
The PSReadLine PowerShell module is critical to set up. It controls many aspects of the command-line editing experience, including accepting input, providing hotkeys, and various algorithms for autocompletion. It strives to provide a good experience out of the box and provides many configuration settings for fine-tuning its behavior.
PSReadLine is so important that Windows 10 started bundling it as part of PowerShell. However, the bundled version can quickly get out of date, and it's worth updating to get the newest features and fixes.
In this section, we'll update the PSReadLine module and install two additional modules: posh-git
and oh-my-posh
. We covered all three of these modules from a UI and theming perspective in Chapter 5, Changing your Windows Terminal appearance; in this section, we'll dive deeper into the features that PSReadLine provides. As a summary, these three modules can be activated in PowerShell Core...