Improving the usability of Powershell on the command line with PSReadLine
To support me, you can subscribe to the channel, share and like the videos, disable your ad blocker or make a donation. Thank you!
Hello,
The PSReadLine PowerShell module replaces the command line experience for Powershell 3 and above. It provides the following: - Syntax highlighting - Syntax error notification - Multiline editing - Customisation of keyboard shortcuts - Windows, Emacs or Vi mode - Completion - Predictive completion - History
https://github.com/PowerShell/PSReadLine
Prediction is enabled by default in PSReadLine 2.2.6.
Syntaxes used in the video
# Windows PowerShell installation.powershell -noprofile -command "Install-Module PSReadLine -Force -SkipPublisherCheck"
# Installation under PowerShell Core/7pwsh.exe -noprofile -command "Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease"
# You can create a profile file to customise and configure the modulenotepad $profile
## You can add the following information:# Load the moduleImport PSReadLine module
# Navigable menu when using TABSet-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Enable prediction based on historySet-PSReadLineOption -PredictionSource History
# Configure the prediction view as a listSet-PSReadLineOption -PredictionViewStyle ListView
# Use Windows editing modeSet-PSReadLineOption -EditMode Windows
## Save and run Powershell to test# Show all keyboard shortcutsGet-PSReadlineKeyHandler
Video : Improving the usability of Powershell on the command line with PSReadLine
Related links
Windows Admin Center - Installing extensions using Powershell
I find it quite time-consuming to have to install Windows Admin Center extensions from the interface and Powershell does it easilyImproving the usability of Powershell on the command line with PSReadLine
The PSReadLine PowerShell module replaces the command line experience for Powershell 3 and aboveViewing other types of file containing simple text in Windows
It is possible to view other types of file containing simple text, such as .ps1, .psm1, .psd1, .twig, .gcode... in Windows File ExplorerPowershell - Testing network connectivity and port accessibility
Testing network connectivity and port accessibility with PowershellPowershell - Display network connections (equivalent to netstat)
Display network connections (listening ports, active connections...)Powershell - Testing name resolution (equivalent to nslookup)
Powershell commands to test name resolution (equivalent to nslookup)
Follow me on
Support me
Last content
Powershell - Testing network connectivity and port accessibility
Powershell - Display network connections (equivalent to netstat)
Powershell - Testing name resolution (equivalent to nslookup)
Powershell - View and manage DNS configuration of network interfaces
Powershell - Managing IP configuration of network interfaces
Powershell - Managing the status and configuration of network interfaces
Powershell and the Left Hand Side
Powershell - Managing disks, partitions and volumes