[英]Insert new line to bash prompts
This seems like a common question, but I can't find this anywhere on Google nor SO. 这似乎是一个常见的问题,但我无法在谷歌和SO上找到这个。 Please point me to the article if you find one. 如果你找到一篇,请指点我。
How do I insert a new line in bash prompts (when you just press ENTER), similar to that in Windows prompt? 如何在bash提示中插入新行(当您只按ENTER键时),类似于Windows提示中的那一行?
Linux: Linux的:
$
$
$
Windows: 视窗:
C:\>
C:\>
C:\>
I need that extra space in between. 我需要两者之间的额外空间。
更改PS1 Bash提示变量:
PS1="\n$PS1"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.