Insert new line to bash prompts

前端 未结 1 1154
無奈伤痛
無奈伤痛 2020-12-20 12:44

This seems like a common question, but I can\'t find this anywhere on Google nor SO. Please point me to the article if you find one.

How do I insert a new line in b

1条回答
  •  天涯浪人
    2020-12-20 12:55

    Change the PS1 Bash prompt variable:

    PS1="\n$PS1"
    

    0 讨论(0)
提交回复
热议问题