MCPcopy
hub / github.com/vercel-labs/just-bash / syncHistory

Method syncHistory

packages/just-bash/src/cli/shell.ts:93–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 }
92
93 private syncHistory(): void {
94 // Sync local history to Bash's BASH_HISTORY for the history command
95 const envObj = this.env.getEnv();
96 envObj.BASH_HISTORY = JSON.stringify(this.history);
97 }
98
99 private getPrompt(): string {
100 const cwd = this.env.getCwd();

Callers 1

executeCommandMethod · 0.95

Calls 1

getEnvMethod · 0.80

Tested by

no test coverage detected