MCPcopy Create free account
hub / github.com/SteffMet/tabby-vscode-agent / getSetupScript

Method getSetupScript

src/tools/shell-strategy.ts:77–80  ·  view source on GitHub ↗
(startMarker: string, endMarker: string)

Source from the content-addressed store, hash-verified

75 }
76
77 getSetupScript(startMarker: string, endMarker: string): string {
78 const cleanup = this.getCleanupScript();
79 return `__TM=0;function __tc(){${cleanup}};function __tpc(){if [[ $__TM -eq 0 ]];then local e=$?;local c=$(fc -ln -1);if [[ "$c" == *"${startMarker}"* ]];then __TM=1;echo "${endMarker}";echo "exit_code: $e";__tc;fi;fi};precmd_functions=(__tpc)`;
80 }
81}
82
83/**

Callers

nothing calls this directly

Calls 1

getCleanupScriptMethod · 0.95

Tested by

no test coverage detected