mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
Updated Troubleshooting (markdown)
parent
5435082f2a
commit
9ae847c6ca
@ -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 <distro_name>
|
||||
```
|
||||
|
||||
<sub>Shoutout to [#1036](https://github.com/nvbn/thefuck/issues/1036) for figuring out this solution</sub>
|
||||
to avoid slowness. For more info, see [this comment](https://github.com/nvbn/thefuck/issues/1036#issuecomment-773641630).
|
||||
|
Loading…
x
Reference in New Issue
Block a user