PowerShell

The awkward Perlish thing I have to use as a CLI on Windows, sometimes conflated with the almost equally awkward console app it’s wrapped in.

Sanity-Preserving Measures

If you’re running Windows 10, then you already have PSReadline installed. If not, get it, otherwise you’ll go insane due to the absence of basic amenities like Ctrl+R. Then do the following:

Enable Emacs keybindings

Add this to %USERPROFILE%\Documents\WindowsPowerShell\profile.ps1 to get Emacs-like line editing (Ctrl+W, Ctrl+A, etc.):

Set-PSReadlineOption -EditMode Emacs

(Optional) Use it from within Cygwin

Grab the winpty package and use it to wrap PS commands from within a Cygwin terminal.

More hints and tips will follow, if I survive.

This page is referenced in: