fix: incorrect args in theme export

this fixes the background color to actually work, and quotes author as well (first usage of the field introduced in #964)
This commit is contained in:
Nick Craver 2021-09-17 16:50:34 -04:00 committed by GitHub
parent c7fa4f3e71
commit c6a3dd4ee8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,9 +71,9 @@ themeConfigOverrrides.set('zash.omp.json', newThemeConfig(40, 40));
let poshCommand = `oh-my-posh --config=${configPath} --shell shell --export-png`;
poshCommand += ` --rprompt-offset=${config.rpromptOffset}`;
poshCommand += ` --cursor-padding=${config.cursorPadding}`;
poshCommand += ` --bg-color=${config.cursorPadding}`;
poshCommand += ` --bg-color=${config.bgColor}`;
if (config.author !== '') {
poshCommand += ` --author=${config.author}`;
poshCommand += ` --author="${config.author}"`;
}
const { _, stderr } = await exec(poshCommand);