MCPcopy Create free account

hub / github.com/Scriptim/bash-prompt-generator / functions

Functions20 in github.com/Scriptim/bash-prompt-generator

↓ 10 callersFunctiongetPromptElementTypeByNameUnsafe
(name: string)
src/lib/enum/promptElementType.ts:364
↓ 6 callersFunctionapplyState
* Applies the given properties state to the given prompt element. * * @param element The prompt element to apply the properties state to. * @param
src/lib/promptParser.ts:237
↓ 2 callersFunctiondefaultPropertiesState
()
src/lib/promptElementProperties.ts:20
↓ 2 callersFunctionfindNerdFontGlyphByCode
(code: number)
src/lib/enum/nerdfontglyph.ts:43101
↓ 2 callersFunctionfindNerdFontGlyphByName
(name: string)
src/lib/enum/nerdfontglyph.ts:43083
↓ 1 callersFunctionapplyPromptCommand
* Substitutes environment variables in the prompt by their according commands that are defined in `PROMPT_COMMAND`. * Only variable assignments of th
src/lib/promptParser.ts:272
↓ 1 callersFunctionequalProperties
* Whether the given prompt elements are equal in terms of their properties. * * The type of the prompt element and its parameters are not considered
src/lib/promptParser.ts:254
↓ 1 callersFunctionreadEscapeCodes
* Reads a sequence of ANSI escape codes from the given position in the given prompt string. * * The escape codes are applied to the given properties
src/lib/promptParser.ts:76
↓ 1 callersFunctionreadUnparameterized
* Tries to read an unparameterized prompt element from the given position in the given prompt string. * * @param ps1 The prompt string given by the
src/lib/promptParser.ts:38
Functionclear
* Removes all elements from the prompt.
src/lib/prompt.ts:71
Methodconstructor
* Creates a prompt element without any parameters or styling. * * @param type the type of the element
src/lib/promptElement.ts:39
Methodconstructor
* Creates a new prompt parser error. * * @param message The error message should be capitalized and not end with a period. * @param ps1 The p
src/lib/promptParser.ts:20
Methodconstructor
* @param char can be a constant string if it does not depend on parameters * @param preview can be a constant string if it does not depend on param
src/lib/enum/promptElementType.ts:109
Methodconstructor
( id: number, name: string, hex: string, color16: { name: string; foreground: number; backgrou
src/lib/enum/color.ts:35
FunctionfuzzySearchNerdFontGlyphs
(name: string)
src/lib/enum/nerdfontglyph.ts:43118
FunctionparsePrompt
(ps1: string, promptCommand: string)
src/lib/promptParser.ts:360
FunctionpropertiesDelta
(propBefore: PropertiesState, propAfter: PropertiesState)
src/lib/promptElementProperties.ts:67
Functionpush
* Appends an element to the prompt. * * The element will be assigned a unique id. * * @param element the element to add
src/lib/prompt.ts:46
Functionremove
* Removes an element from the prompt. * * @param id the id of the element to remove
src/lib/prompt.ts:58
Functiontoggle
* Toggles the dark mode.
src/lib/darkMode.ts:27