mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix(env): init environ cache
This commit is contained in:
parent
a200ee73ff
commit
dc50bd3546
|
@ -229,6 +229,7 @@ func (env *environment) environ() map[string]string {
|
||||||
if env.environCache != nil {
|
if env.environCache != nil {
|
||||||
return env.environCache
|
return env.environCache
|
||||||
}
|
}
|
||||||
|
env.environCache = make(map[string]string)
|
||||||
const separator = "="
|
const separator = "="
|
||||||
values := os.Environ()
|
values := os.Environ()
|
||||||
for value := range values {
|
for value := range values {
|
||||||
|
|
Loading…
Reference in a new issue