Closed bewing closed 2 years ago
@bewing this can actually be improved by only doing this for the Windows drive, no? If we rewrite strings.HasPrefix(env.Pwd(), "/mnt/")
to strings.HasPrefix(env.Pwd(), "/mnt/c/")
it should not result in a false positive here.
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
https://github.com/JanDeDobbeleer/oh-my-posh/blob/2ed2c038af197406f8e71fd3c8a8829d61031ec7/src/environment/shell_unix.go#L100-L102
It is common to mount arbitrary directories into
/mnt
. The SCM plugin (and any other code checking for WSL windows mounts) should specifically look to see if our CWD is inside a9p
type mount, and not just check the prefix of the path:Theme
What OS are you seeing the problem on?
Windows, Linux
Which shell are you using?
bash
Log output