thefuck icon indicating copy to clipboard operation
thefuck copied to clipboard

Conflicting documentation for correct syntax of alias

Open pallaswept opened this issue 2 years ago • 0 comments

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.32 using Python 3.11.4 and Bash 5.2.15(1)-release

Your system (Debian 7, ArchLinux, Windows, etc.):

openSUSE Tumbleweed

How to reproduce the bug:

Read the documentation. It says to use eval $(thefuck --alias) Now run the application (type fuck) without the alias present, and it will mention that the alias is missing, and it can be automatically added by typing fuck again Do so. The entry is created: eval "$(thefuck --alias)" Note the quotes or lack thereof.

Anything else you think is relevant:

I have also seen issues where single quotes are used, ie: eval '$(thefuck --alias)'

What is the correct syntax?

pallaswept avatar Sep 03 '23 05:09 pallaswept