Skip to content

Commit 52ce796

Browse files
authored
feat: add ROO_ACTIVE env variable to terminal env settings (#11862)
1 parent 3e237e6 commit 52ce796

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/integrations/terminal/Terminal.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export class Terminal extends BaseTerminal {
152152

153153
public static getEnv(): Record<string, string> {
154154
const env: Record<string, string> = {
155+
ROO_ACTIVE: "true",
155156
PAGER: process.platform === "win32" ? "" : "cat",
156157

157158
// VTE must be disabled because it prevents the prompt command from executing

src/integrations/terminal/__tests__/TerminalRegistry.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe("TerminalRegistry", () => {
4646
iconPath: expect.any(Object),
4747
env: {
4848
PAGER,
49+
ROO_ACTIVE: "true",
4950
VTE_VERSION: "0",
5051
PROMPT_EOL_MARK: "",
5152
},
@@ -66,6 +67,7 @@ describe("TerminalRegistry", () => {
6667
iconPath: expect.any(Object),
6768
env: {
6869
PAGER,
70+
ROO_ACTIVE: "true",
6971
PROMPT_COMMAND: "sleep 0.05",
7072
VTE_VERSION: "0",
7173
PROMPT_EOL_MARK: "",
@@ -88,6 +90,7 @@ describe("TerminalRegistry", () => {
8890
iconPath: expect.any(Object),
8991
env: {
9092
PAGER,
93+
ROO_ACTIVE: "true",
9194
VTE_VERSION: "0",
9295
PROMPT_EOL_MARK: "",
9396
ITERM_SHELL_INTEGRATION_INSTALLED: "Yes",
@@ -109,6 +112,7 @@ describe("TerminalRegistry", () => {
109112
iconPath: expect.any(Object),
110113
env: {
111114
PAGER,
115+
ROO_ACTIVE: "true",
112116
VTE_VERSION: "0",
113117
PROMPT_EOL_MARK: "",
114118
POWERLEVEL9K_TERM_SHELL_INTEGRATION: "true",

0 commit comments

Comments
 (0)