mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -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) {
|
||||
env.args = args
|
||||
env.fileCache = &fileCache{}
|
||||
env.fileCache.init(env.getCachePath())
|
||||
env.resolveConfigPath()
|
||||
env.cmdCache = &commandCache{
|
||||
commands: newConcurrentMap(),
|
||||
|
@ -174,8 +176,6 @@ func (env *environment) init(args *args) {
|
|||
env.debug = true
|
||||
log.SetOutput(&env.logBuilder)
|
||||
}
|
||||
env.fileCache = &fileCache{}
|
||||
env.fileCache.init(env.getCachePath())
|
||||
}
|
||||
|
||||
func (env *environment) resolveConfigPath() {
|
||||
|
|
Loading…
Reference in a new issue