From 88dec0868563fe0fe4b13dac32dd3e47f19c7902 Mon Sep 17 00:00:00 2001 From: "L. Yeung" Date: Mon, 9 May 2022 00:17:14 +0800 Subject: [PATCH] feat(cmd): set `POSH_THEME` env in init script --- src/shell/scripts/omp.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shell/scripts/omp.lua b/src/shell/scripts/omp.lua index 4520bbe3..3c7c4d89 100644 --- a/src/shell/scripts/omp.lua +++ b/src/shell/scripts/omp.lua @@ -33,6 +33,8 @@ local function omp_config() return [["::CONFIG::"]] end +os.setenv("POSH_THEME", omp_config()) + local function can_async() if (clink.version_encoded or 0) >= 10030001 then return settings.get("prompt.async")