简体   繁体   English

bash终端,希望光标显示在下一行的开头

[英]bash terminal, want the cursor to be shown at the beginning of the next line

I use bash terminal on macos. 我在macOS上使用bash终端。

The user name, computer name and file path face most of the line, so if I write a long command I start on one line and continue on the next line. 用户名,计算机名和文件路径面对大多数行,因此,如果我写了一条长命令,我将从一行开始,然后在下一行继续。

Instead I would prefer the line cursor starts at the next line below user name and computer name. 相反,我希望行光标从用户名和计算机名下面的下一行开始。

#Current
user-mane@computer-name:~/directory/sub-directory/another-sub-directory$ls -la

#I would like to have 
user-mane@computer-name:~/directory/sub-directory/another-sub-directory$
ls -la

Do you have any idea, how I could start the cursor at he begining of the next line. 您有什么主意,我如何在下一行的开头处开始游标。

在此处输入图片说明

在外壳启动文件的$PS1末尾添加换行符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM