Reputation: 4063
I use bash terminal on macos.
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.
Upvotes: 3
Views: 2905
Reputation: 11
If you are having ~/.bashrc
, then open the file ~/.bashrc
and search for lines starting with PS1='...'
and at the end of PS1='... '
add \n
like this:
PS1='... \n'
After that, save the file and exit your editor and run the command :
source ~/.bashrc
Upvotes: 1
Reputation: 799082
Put a newline at the end of $PS1
in the shell startup files.
Upvotes: 8