Skip to content

TheFuck v4.1 for Python 3.12 / 3.13 (2026-02-22 20:35 UTC) (x86_64) (GNU/Linux)

Latest

Choose a tag to compare

@R-Larocque R-Larocque released this 22 Feb 20:35

TheFuck v4.1 for Python 3.12 / 3.13 (2026-02-22 20:35 UTC) (x86_64) (GNU/Linux)

Changelog

  • Full compatibility with Python 3.12 and Python 3.13
  • Tested with Python 3.12.3 and Python 3.13 on Pop!_OS 24.04 LTS (Pop!_OS GNU/Linux LTS Kernel) and ArchLinux (Zen Kernel)
  • Various bug fixes
  • ...

Planned

  • Windows, macOS, ChromeOS and BSD compatibility (Windows is already implemented, but not tested yet)
  • Prebuilt packages for various operating system
  • Python 3.14 full compatibility
  • Binaries for other CPU architectures
  • More rules
  • Random improvements
  • Snap package? Why not... (Canonical, if you are reading this, make your junk open-source, please...)
  • Automatically add fuck alias after install (how am I gonna do that T-T)
  • Make working binaries
  • ...

Files

  • thefuck4.1-x86_64-py3.12.tgz current source code (GZipped Tarball)
  • thefuck4.1-x86_64-py3.12.zip current source code (Zip)

Notes

  • You need to manually add the alias to your shell's config
  • Expect some bugs, please report them in issues

Adding the alias to your shell's config

Bash

Add this line to ~/.bashrc (or /etc/bash.bashrc if you need system-wide):

eval "$(thefuck --alias)"

Then reload the shell:

source ~/.bashrc

Zsh

Add to ~/.zshrc:

eval "$(thefuck --alias)"

Reload:

source ~/.zshrc

Fish

Fish uses a different syntax, add to ~/.config/fish/config.fish:

thefuck --alias | source

Reload:

source ~/.config/fish/config.fish

Tcsh / Csh

Add to ~/.cshrc or ~/.tcshrc:

eval `thefuck --alias`

Reload:

source ~/.cshrc

Dash / sh

  • sh or dash are minimal and don’t support shell functions very well
  • You can only call thefuck directly as a command:
alias fuck='thefuck THEFUCK_ARGUMENT_PLACEHOLDER'

Add it to ~/.profile or ~/.shrc if you have one

(I didn't have time to test all of these, sorry! I'll do it on next release.)