variable

PS1

Primary interactive prompt string. The example uses explicit prompt expansion, not actual terminal rendering.

Formal Syntax & Structure

bash syntaxbash
PS1="practice> "

Return Value

prompt string

Primary interactive prompt string. The example uses explicit prompt expansion, not actual terminal rendering.

Working Example

Example Snippetbash
PS1='practice> 'PS2='continue> 'printf '[%s]\n' "${PS1@P}" "$PS2"
Bash Reference