Skip to content
Pablo Aguiar edited this page Jan 2, 2022 · 3 revisions

command not found

If the following error message is shown when trying to run thefuck:

command not found: thefuck

Ensure that ~/.local/bin is present in your path. eg. add PATH="$PATH:$HOME/.local/bin" to .bashrc, .zshrc etc.

WSL: Fix slowness

On Windows Subsystem for Linux, it's possible to experience very slow command execution (~10+ seconds). This is due to the Windows PATH being appended to the $PATH variable by default.

On WSL after installing, change the ~/.config/thefuck/settings.py to include

excluded_search_path_prefixes = ['/mnt/']

to avoid slowness. For more info, see this comment.

Usage on Android (or other systems that forbid access to /proc

The Fuck tries to guess the shell by inspecting its parent processes. That information lives in /proc and if your user can't access /proc you must specify the shell:

eval $(TF_SHELL=bash thefuck --alias)

or

TF_SHELL=fish thefuck --alias | source

wda

Clone this wiki locally