使用 PS2

当命令扩展到多行并且 bash 等待更多击键时,将显示 PS2。当输入复合命令时,它也会显示,例如 while … do..done 等。

export PS2="would you please complete this command?\n" 
# now enter a command extending to at least two lines to see PS2