Wednesday, January 8, 2014

How to allow Ctrl-V pasting into Windows command line

Coming with Unix background, it's shocking to learn you cannot paste something into Windows command line using keyboard (Ctrl-V shortcut).
Luckily, there is a tool that fixes that.
Just open cmd.exe (not powershell) and run those two lines:

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString(''))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin

cinst wincommandpaste

As a bonus, you get Chocolatey installed, and this is a cool tool by itself.

No comments: