nvbn / thefuck

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

I have installed but it doesn't work? #891

Open 1412904892 opened 5 years ago

1412904892 commented 5 years ago

pip3 install thefuck --upgrade Collecting thefuck Using cached https://files.pythonhosted.org/packages/c2/4c/278fcd289729c4714b9dd9010c7957538994079dc2344a609dafa96adf6a/thefuck-3.28-py2.py3-none-any.whl Collecting six (from thefuck) Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl Collecting psutil (from thefuck) Using cached https://files.pythonhosted.org/packages/2f/b8/11ec5006d2ec2998cb68349b8d1317c24c284cf918ecd6729739388e4c56/psutil-5.6.1.tar.gz Collecting pyte (from thefuck) Collecting colorama (from thefuck) Using cached https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl Collecting decorator (from thefuck) Using cached https://files.pythonhosted.org/packages/f1/cd/7c8240007e9716b14679bc217a1baefa4432aa30394f7e2ec40a52b1a708/decorator-4.3.2-py2.py3-none-any.whl Collecting wcwidth (from pyte->thefuck) Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl Building wheels for collected packages: psutil Running setup.py bdist_wheel for psutil ... done Stored in directory: /home/yyk/.cache/pip/wheels/86/36/f4/e1fc49f198c623b8dc2156e80011a52f19a959d538f6b1a5db Successfully built psutil Installing collected packages: six, psutil, wcwidth, pyte, colorama, decorator, thefuck Successfully installed colorama-0.4.1 decorator-4.3.2 psutil-5.6.1 pyte-0.8.0 six-1.12.0 thefuck-3.28 wcwidth-0.1.7 yyk@chain:~$ fuck

Command 'fuck' not found, did you mean:

command 'fsck' from deb util-linux command 'suck' from deb suck command 'duck' from deb duck

Try: sudo apt install

yyk@chain:~$ thefuck

Command 'thefuck' not found, but can be installed with:

sudo apt install thefuck

AndrewKassab commented 5 years ago

You need to set up the fuck alias. Add 'eval $(thefuck --alias)' to your bashrc

yfxiongda commented 5 years ago

You need to set up the fuck alias. Add 'eval $(thefuck --alias)' to your bashrc

I add it in my bashrc and run 'source ~/.bashrc' but it still don't work

HernandoR commented 2 years ago

same as @yfxiongda have you fixed it?



13 Feb 2022

Worked for me after a few restarts.
scorphus commented 2 years ago

Could you please share the contents of .bashrc?