Skip to content

Commit

Permalink
fix: incorrect args in theme export
Browse files Browse the repository at this point in the history
this fixes the background color to actually work, and quotes author as well (first usage of the field introduced in #964)
  • Loading branch information
NickCraver committed Sep 17, 2021
1 parent c7fa4f3 commit c6a3dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/export_themes.js
Expand Up @@ -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);
Expand Down

0 comments on commit c6a3dd4

Please sign in to comment.