mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
fix: init cache first
This commit is contained in:
parent
0a09924685
commit
ad297dbe08
|
@ -166,6 +166,8 @@ type environment struct {
|
||||||
|
|
||||||
func (env *environment) init(args *args) {
|
func (env *environment) init(args *args) {
|
||||||
env.args = args
|
env.args = args
|
||||||
|
env.fileCache = &fileCache{}
|
||||||
|
env.fileCache.init(env.getCachePath())
|
||||||
env.resolveConfigPath()
|
env.resolveConfigPath()
|
||||||
env.cmdCache = &commandCache{
|
env.cmdCache = &commandCache{
|
||||||
commands: newConcurrentMap(),
|
commands: newConcurrentMap(),
|
||||||
|
@ -174,8 +176,6 @@ func (env *environment) init(args *args) {
|
||||||
env.debug = true
|
env.debug = true
|
||||||
log.SetOutput(&env.logBuilder)
|
log.SetOutput(&env.logBuilder)
|
||||||
}
|
}
|
||||||
env.fileCache = &fileCache{}
|
|
||||||
env.fileCache.init(env.getCachePath())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (env *environment) resolveConfigPath() {
|
func (env *environment) resolveConfigPath() {
|
||||||
|
|
Loading…
Reference in a new issue