mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
Created WSL fix section and moved a section from Shell aliases here
parent
50dcf3e591
commit
7222eb63aa
25
Troubleshooting.md
Normal file
25
Troubleshooting.md
Normal file
@ -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 <distro_name>
|
||||||
|
```
|
||||||
|
|
||||||
|
<sub>Shoutout to [#1036](https://github.com/nvbn/thefuck/issues/1036) for figuring out this solution</sub>
|
Loading…
x
Reference in New Issue
Block a user