mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
feat: transform wsl path to windows folder
This commit is contained in:
parent
6add3bf2a0
commit
b0562a38b8
|
@ -65,6 +65,10 @@ func (pt *path) string() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
if pt.props.getBool(EnableHyperlink, false) {
|
if pt.props.getBool(EnableHyperlink, false) {
|
||||||
|
// wsl check
|
||||||
|
if pt.env.isWsl() {
|
||||||
|
cwd, _ = pt.env.runCommand("wslpath", "-m", cwd)
|
||||||
|
}
|
||||||
return fmt.Sprintf("[%s](file://%s)", formattedPath, cwd)
|
return fmt.Sprintf("[%s](file://%s)", formattedPath, cwd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue