我在 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
Run Code Online (Sandbox Code Playgroud)
你有什么想法,我怎么能在下一行的开头启动光标。
$PS1在 shell 启动文件的末尾放置一个换行符。