-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Troubleshooting
Pablo Aguiar edited this page Jan 2, 2022
·
3 revisions
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.
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.
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