The Windows Linux Subsystem (WSL) comes with /win/c
mounted world read-write and is setup for compatibility between windows and linux by putting all your windows paths into your linux system path. This is great for some usecases. Some tools get grumpy having these world writable directories a users path. While this doesn't break them but it can cause annoying warning messages.
On the other hand, when you don't care about the windows tools being in your path, it might make you more sane not to see those error messages, and also to limit the number of places tools look for supporting binaries not-relevant to themselves.
: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
You can remove all those /mnt/c
paths from your $PATH
with the following line: