插入新行来砸提示 [英] Insert new line to bash prompts
本文介绍了插入新行来砸提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这似乎是一个常见的问题,但我不能找到谷歌也因此,这在任何地方。请点我的文章,如果你找到一个。
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.
我要如何插入新行在bash提示(当你只是preSS ENTER),类似于Windows提示?
How do I insert a new line in bash prompts (when you just press ENTER), similar to that in Windows prompt?
Linux的:
$
$
$
Windows系统:
Windows:
C:\>
C:\>
C:\>
我需要额外的空间之间。
I need that extra space in between.
推荐答案
更改PS1 Bash提示符变量:
Change the PS1 Bash prompt variable:
PS1="\n$PS1"
这篇关于插入新行来砸提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文