diff --git a/Troubleshooting.md b/Troubleshooting.md index cb92697..772c228 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -10,16 +10,10 @@ Ensure that `~/.local/bin` is present in your path. eg. add `PATH="$PATH:$HOME/. # 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: +On WSL after installing, change the `~/.config/thefuck/settings.py` to include + ``` -[interop] -appendWindowsPath = false +excluded_search_path_prefixes = ['/mnt/'] ``` -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 +to avoid slowness. For more info, see [this comment](https://github.com/nvbn/thefuck/issues/1036#issuecomment-773641630).