Friday, 25 May 2018

console - Advanced command line editing for Windows?


I'm developer who was "born and bred" on Linux and BSD systems, and I've become accustomed to having advanced tools for the console (posix shells like bash, for example). My career has taken a twist that means I'm working in a Windows environment most of the time, and the console capabilities are really poor by comparison. The traditional windows console environment is a complete joke, and even most of the third party attempts at improving things aren't a lot better. PowerShell is a huge step in the right direction, but the console applications themselves are still way behind where unix has been for 20 years.


Does anyone know of a PowerShell console application that supports advanced command line editing like posix shells do? I'm particularly interested in emacs-mode editing, and I'd also like to be able to resize my window to an arbirary size, unlike the native console app that comes with Windows.



Answer



After all this time, I have finally found a solution I like: ConEmu + Clink. And not just ConEmu, but Ethan Brown's ConEmu config:


enter image description here


This can be installed through Chocolatey. I highly recommend this configuration; ConEmu is great, but configuring it to something that looks nice is a chore. Here's how you install


PS> choco install EthanBrown.ConEmuConfig

Also, note that I'm using Clink as well, which provides a GNU readline-like line editing capability which I am thoroughly enjoying. Clink is available like this:


PS> choco install Clink

The Clink installer will edit your $profile for you to inject it into the running host process.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...