fuck

magnificent app which corrects your previous console command

TLDR

Set the fuck alias to thefuck tool

>_ eval "$(thefuck --alias)"
copy

Try to match a rule for the previous command

>_ fuck
copy

usage

thefuck [-v] [-a [ALIAS]] [-l SHELL_LOGGER] [--enable-experimental-instant-mode] [-h] [-y | -r] [-d] [command [command ...]]

positional arguments

command command that should be fixed

optional arguments

-v, --version show program's version number and exit -a [ALIAS], --alias [ALIAS] [custom-alias-name] prints alias for current shell -l SHELL_LOGGER, --shell-logger SHELL_LOGGER log shell output to the file --enable-experimental-instant-mode enable experimental instant mode, use on your own risk -h, --help show this help message and exit -y, --yes execute fixed command without confirmation -r, --repeat repeat on failure -d, --debug enable debug output

Copied to clipboard
free 100$ digital ocean credit