Last active
August 29, 2024 11:13
-
-
Save nathonius/a9848df0a25706532f86dc8aaae56e4f to your computer and use it in GitHub Desktop.
thefuck for Cmder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM ************************** | |
REM * RUN THIS FIRST * | |
REM * clink set history_io 1 * | |
REM ************************** | |
set PYTHONIOENCODING=utf-8 | |
set PYTHONLEGACYWINDOWSSTDIO=yes | |
tail -n 2 %CMDER_ROOT%\config\.history | head -n 1 > %CMDER_ROOT%\config\fucked_cmd.txt | |
set /p fucked_cmd=<%CMDER_ROOT%\config\fucked_cmd.txt | |
thefuck %fucked_cmd% > %CMDER_ROOT%\config\unfucked.cmd | |
call %CMDER_ROOT%\config\unfucked.cmd |
In the new versions of clink the setting is called history.shared
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attempting to enclose paths within double quotes: