nvbn/thefuck

Hitting enter does not execute the previous command in Windows Git Bash

Open

#672 aperta il 28 lug 2017

Vedi su GitHub
 (6 commenti) (10 reazioni) (0 assegnatari)Python (3949 fork)batch import
hacktoberfesthelp wanted

Metriche repository

Star
 (96.953 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

$ echo "foo'
> ^C
$ fuck
echo "foo" [enter/↑/↓/ctrl+c]
(hangs here...)

This is on Windows Git Bash (bash 4.4). thefuck --version and type fuck are below.

$ thefuck --version
The Fuck 3.18 using Python 2.7.13

$ type fuck
fuck is a function
fuck ()
{
    TF_PREVIOUS=$(fc -ln -1);
    TF_PYTHONIOENCODING=$PYTHONIOENCODING;
    export TF_ALIAS=fuck;
    export TF_SHELL_ALIASES=$(alias);
    export PYTHONIOENCODING=utf-8;
    TF_CMD=$( thefuck $TF_PREVIOUS THEFUCK_ARGUMENT_PLACEHOLDER $@ ) && eval $TF_CMD;
    export PYTHONIOENCODING=$TF_PYTHONIOENCODING;
    history -s $TF_CMD
}

Guida contributor