1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00
3 Troubleshooting
Pablo Aguiar edited this page 2022-01-02 13:57:16 +01:00

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