> ## Content Index
> Fetch the complete content index at: https://codeisahighway.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# DevOps tool: PSReadLine and how to install it using PowerShell v5.0 and OneGet
- URL: https://codeisahighway.com/how-to-install-psreadline-using-powershell-v5-0-and-oneget/
- Published: 2015-03-01T22:57:01.000Z
- Updated: 2026-08-10T07:12:16.000Z
- Author: Stephane Lapointe
- Tags: PowerShell, DevOps, Tools, #Import 2023-07-11 16:44, #Import 2026-09-04 10:31, #Import 2026-09-04 13:56

## What is PSReadLine

It's someone at work that told me about PSReadLine. I just took me 5 minutes to realize that this module is a life changer for everyone doing serious PowerShell. Here is what is does

> This module replaces the command line editing experience in PowerShell.exe for versions 3 and up. It provides:

- Syntax coloring
- Simple syntax error notification
- A good multi-line experience (both editing and history)
- Customizable key bindings
- Cmd and emacs modes (neither are fully implemented yet, but both are usable)
- Many configuration options
- Bash style completion (optional in Cmd mode, default in Emacs mode)
- Bash/zsh style interactive history search (CTRL-R)
- Emacs yank/kill ring
- PowerShell token based "word" movement and kill
- Undo/redo
- Automatic saving of history, including sharing history across live sessions
- "Menu" completion (somewhat like Intellisense, select completion with arrows) via Ctrl+Space

More information about [PSReadLine](https://github.com/lzybkr/PSReadLine?ref=codeisahighway.com).

## How to install it

First you'll need PowerShell 5\. You can get it from Microsoft website's download section. [Download PowerShell 5](http://www.microsoft.com/en-us/Search/result.aspx?q=powershell+5&x=0&y=0&ref=codeisahighway.com#downloads)

In a PowerShell console, type the following:  
`Install-Package PSReadLine`  
![Install-Package PSReadLine](https://codeisahighway.com/content/images/2015/03/Install-Package-PSReadLine-1.png)

Now that the module is installed. Open or create the file named:  
`C:\Users\{username}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1`

and insert the following statement:  
`Import-Module PSReadLine`

The PSReadLine module will now be imported everytime the PowerShell console is invoked.

Tryout this PowerShell module and let me know what you think...