nvbn / thefuck

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

Conflicting documentation for correct syntax of alias #1400

Open pallaswept opened 10 months ago

pallaswept commented 10 months ago

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?