MCPcopy Create free account
hub / github.com/Scriptim/bash-prompt-generator / applyPromptCommand

Function applyPromptCommand

src/lib/promptParser.ts:272–348  ·  view source on GitHub ↗

* Substitutes environment variables in the prompt by their according commands that are defined in `PROMPT_COMMAND`. * Only variable assignments of the form `VAR1=$(command); VAR2=$(command); …` are supported. * * @param ps1 The list of prompt elements as created by `parsePrompt`. * @param prompt

(ps1: PromptElement[], promptCommand: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

parsePromptFunction · 0.85

Calls 1

Tested by

no test coverage detected