Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Scriptim/bash-prompt-generator
/ functions
Functions
20 in github.com/Scriptim/bash-prompt-generator
⨍
Functions
20
◇
Types & classes
8
↓ 10 callers
Function
getPromptElementTypeByNameUnsafe
(name: string)
src/lib/enum/promptElementType.ts:364
↓ 6 callers
Function
applyState
* 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 callers
Function
defaultPropertiesState
()
src/lib/promptElementProperties.ts:20
↓ 2 callers
Function
findNerdFontGlyphByCode
(code: number)
src/lib/enum/nerdfontglyph.ts:43101
↓ 2 callers
Function
findNerdFontGlyphByName
(name: string)
src/lib/enum/nerdfontglyph.ts:43083
↓ 1 callers
Function
applyPromptCommand
* 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 callers
Function
equalProperties
* 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 callers
Function
readEscapeCodes
* 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 callers
Function
readUnparameterized
* 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
Function
clear
* Removes all elements from the prompt.
src/lib/prompt.ts:71
Method
constructor
* Creates a prompt element without any parameters or styling. * * @param type the type of the element
src/lib/promptElement.ts:39
Method
constructor
* 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
Method
constructor
* @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
Method
constructor
( id: number, name: string, hex: string, color16: { name: string; foreground: number; backgrou
src/lib/enum/color.ts:35
Function
fuzzySearchNerdFontGlyphs
(name: string)
src/lib/enum/nerdfontglyph.ts:43118
Function
parsePrompt
(ps1: string, promptCommand: string)
src/lib/promptParser.ts:360
Function
propertiesDelta
(propBefore: PropertiesState, propAfter: PropertiesState)
src/lib/promptElementProperties.ts:67
Function
push
* 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
Function
remove
* Removes an element from the prompt. * * @param id the id of the element to remove
src/lib/prompt.ts:58
Function
toggle
* Toggles the dark mode.
src/lib/darkMode.ts:27