diff --git a/Troubleshooting.md b/Troubleshooting.md new file mode 100644 index 0000000..cb92697 --- /dev/null +++ b/Troubleshooting.md @@ -0,0 +1,25 @@ +# 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. + +This can be fixed by creating/modifying ```/etc/wsl.conf``` and adding the following: +``` +[interop] +appendWindowsPath = false +``` + +In CMD/PowerShell, get the Linux distribution name and terminate it so that the config is picked up: +``` +wsl.exe --list +wsl.exe --terminate +``` + +Shoutout to [#1036](https://github.com/nvbn/thefuck/issues/1036) for figuring out this solution \ No newline at end of file