mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
b3d9981eec
commit
f6232deaf8
|
@ -32,7 +32,8 @@ func (b *Battery) Template() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *Battery) Enabled() bool {
|
func (b *Battery) Enabled() bool {
|
||||||
if !b.env.IsWsl2() {
|
// disable in WSL1
|
||||||
|
if b.env.IsWsl() && !b.env.IsWsl2() {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue