From 39b7615aac0e87e7d8910f6da4814a440306d182 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 9 Aug 2024 11:31:15 +0200 Subject: [PATCH] fix(toml): remove unsupported schema definition --- src/config/backup.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config/backup.go b/src/config/backup.go index 271f51f4..a7a4e2af 100644 --- a/src/config/backup.go +++ b/src/config/backup.go @@ -56,7 +56,6 @@ func (cfg *Config) Export(format string) string { data := strings.Replace(result.String(), "{", prefix, 1) return escapeGlyphs(data, cfg.MigrateGlyphs) case TOML: - prefix := "#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json\n\n" tomlEncoder := toml.NewEncoder(&result) tomlEncoder.SetIndentTables(true) @@ -65,7 +64,7 @@ func (cfg *Config) Export(format string) string { return "" } - return prefix + result.String() + return result.String() } // unsupported format