mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 11:59:40 -08:00
fix(config): handle yaml correctly on yml extension
This commit is contained in:
parent
b4c44ea8d1
commit
dcc2080047
|
@ -103,6 +103,9 @@ func loadConfig(env environment.Environment) *Config {
|
|||
|
||||
cfg.origin = configFile
|
||||
cfg.format = strings.TrimPrefix(filepath.Ext(configFile), ".")
|
||||
if cfg.format == "yml" {
|
||||
cfg.format = YAML
|
||||
}
|
||||
|
||||
config.AddDriver(yaml.Driver)
|
||||
config.AddDriver(json.Driver)
|
||||
|
|
Loading…
Reference in a new issue