Secondary Prompt String

$PS2 defines the secondary prompt string of your shell. It’s used for line continuations. Only shells running in interactive mode use it.

Examples

1
2
3
# Bash: lines, which continue a previous line, are prefixed with ">> "
# Enter `echo \` followed by enter in an interactive shell to see it 
export PS2=">> "
BashSupport Pro 是一个 支持 $PS2 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款