From 9ae847c6ca23dab5f604fe48e6eb420e8149bfbf Mon Sep 17 00:00:00 2001 From: Teemu Helenius <46352445+Temez1@users.noreply.github.com> Date: Fri, 17 Sep 2021 16:27:35 +0300 Subject: [PATCH] Updated Troubleshooting (markdown) --- Troubleshooting.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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).