[英]bash terminal, want the cursor to be shown at the beginning of the next line
我在macOS上使用bash终端。
用户名,计算机名和文件路径面对大多数行,因此,如果我写了一条长命令,我将从一行开始,然后在下一行继续。
相反,我希望行光标从用户名和计算机名下面的下一行开始。
#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
您有什么主意,我如何在下一行的开头处开始游标。
在外壳启动文件的$PS1
末尾添加换行符。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.