home

Using Unix terminal shortcuts in the Windows command prompt

20 Feb 2013

Unix terminals have a few basic keyboard shortcuts.

The Windows command prompt doesn't support these by default but we can fix that with AutoHotkey.

If you don't already have it installed, you can follow the steps in my blog post.

Add this magic to your AutoHotkey script to enable these shortcuts in the Windows command prompt and PowerShell.

#IfWinActive ahk_class ConsoleWindowClass
^L::SendInput , {Esc}cls{Enter}
^D::SendInput , {Esc}exit{Enter}
^V::SendInput , {Raw}%clipboard%
#IfWinActive

Back away from the mouse, my friends.

blog comments powered by Disqus