nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
84.95k stars 3.43k forks source link

feat: Add support for Windows `CMD` and easier setup for Powershell #1329

Closed gerardog closed 1 year ago

gerardog commented 2 years ago

Windows CMD support is almost impossible without removing c:\Python310\Scripts\fuck.exe, so I did (only affects windows installation), and added a fuck.bat (mandatory for CMD support).

This created a problem for first time users of PowerShell / pwsh, so I created fuck.ps1 to solve it, and also auto configure the $PROFILE

Related

gerardog commented 2 years ago

Some proof of how I tested it:

On pwsh: image image

On cmd image

gerardog commented 1 year ago

No one interested in making it work on Windows?

scorphus commented 1 year ago

Hola, Gerardo!

No one interested in making in work on Windows?

Yes, definitely. Great to see some developments in that direction. I'll review this PR asap.

Thanks for contributing!

farisfaikar commented 1 month ago

Hi! I've been browsing all day looking for a solution to install thefuck on Windows CMD. This PR seems to have made it easier to setup thefuck for both CMD and Powershell, however, I'm having a hard time following how to install it as there is no proper documentation on how to install it. Would anybody care about making a step-by-step guide?