mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2026-08-24 10:14:12 -05:00
fix(environment): check WSL shared path correctly
This commit is contained in:
committed by
Jan De Dobbeleer
parent
0b77995d80
commit
f04e22a5d1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user