diff --git a/src/environment/shell_unix.go b/src/environment/shell_unix.go index 23fb4e3a..f9376d63 100644 --- a/src/environment/shell_unix.go +++ b/src/environment/shell_unix.go @@ -102,7 +102,7 @@ func (env *ShellEnvironment) InWSLSharedDrive() bool { return false } windowsPath := env.ConvertToWindowsPath(env.Pwd()) - return !strings.HasPrefix(windowsPath, `\\wsl.localhost`) + return !strings.HasPrefix(windowsPath, `//wsl.localhost`) && !strings.HasPrefix(windowsPath, `//wsl$`) } func (env *ShellEnvironment) ConvertToWindowsPath(path string) string {