Skip to content
mxx kee edited this page May 13, 2024 · 24 revisions

Generic way

You need to install requirements:

  • pip
  • python
  • python-dev (or python-devel on some distros: Fedora, CentOS)

And then install thefuck with pip:

pip install --user thefuck

OS X

brew install thefuck

or

sudo easy_install thefuck

or

sudo port install thefuck

Ubuntu

❗ Do not use sudo easy_install pip, it does not work on Ubuntu.

sudo apt install thefuck
# or to get the newest version
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install thefuck

Arch

sudo pacman -S thefuck

Fedora

sudo dnf install thefuck
# or to get the newest version
sudo dnf install python-pip python-devel
sudo pip install thefuck

Gentoo

sudo emerge --ask app-shells/thefuck

OpenSUSE

sudo zypper in python3 python3-devel
sudo pip install thefuck

Void Linux

sudo xbps-install thefuck

nixOS

  • my config is made with intended file configuration.nix
  • this config is without flakes
# ...
  environment.systemPackages [
    # ...
    # tba
    thefuck # app which corrects your previous console command
    ];

  programs.thefuck = {     
		enable = true;     
		alias = "fuck";        
		};   

wda

Clone this wiki locally