diff --git a/src/environment/shell_unix.go b/src/environment/shell_unix.go index 0c23de76..d7d169a2 100644 --- a/src/environment/shell_unix.go +++ b/src/environment/shell_unix.go @@ -98,7 +98,7 @@ func (env *ShellEnvironment) WindowsRegistryKeyValue(path string) (*WindowsRegis } func (env *ShellEnvironment) InWSLSharedDrive() bool { - if !env.IsWsl() { + if !env.IsWsl2() { return false } windowsPath := env.ConvertToWindowsPath(env.Pwd())