mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
fix(environment): check WSL shared path correctly
This commit is contained in:
parent
0b77995d80
commit
f04e22a5d1
|
@ -102,7 +102,7 @@ func (env *ShellEnvironment) InWSLSharedDrive() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
windowsPath := env.ConvertToWindowsPath(env.Pwd())
|
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 {
|
func (env *ShellEnvironment) ConvertToWindowsPath(path string) string {
|
||||||
|
|
Loading…
Reference in a new issue