Update powershell keyboard bindings to be emacs style like bash shell Update powershell keyboard bindings to be emacs style like bash shell windows windows

Update powershell keyboard bindings to be emacs style like bash shell


You can do that with the PSReadLine module which ships with PowerShell 5.0 (Windows 10).

Simply set the EditMode option to Emacs:

Set-PSReadLineOption -EditMode Emacs

In addition to the default Windows mode, it also has a Vi mode.

The project README file mentions that neither are fully implemented so don't expect full feature parity, but I can confirm that it switches tab completion to bash-style and supports the Alt+F and Ctrl+P key bindings for moving forward and jumping to the previous command respectively

(I'm not an experienced emacs user so I'm unable to tell whether this comes "close enough" to what you expect)