在 <username@host-path> 之后将终端提示放在新行中

Putting terminal prompt in new row, after <username@host-path>

如何修改 Linux 上的终端提示(特别是 Ubuntu),以便提示位于 username@host-path 之后的新行中?
如下图所示(git bash win7 终端):

这是详细的页面,应该可以帮助你 https://help.ubuntu.com/community/CustomizingBashPrompt

并直接回答您的问题:
在您的主目录中的 .bashrc 文件中,找到任何以 $ 结尾的条目并向其添加一个换行符,以便它以 \n$.

结尾