I wish to add a new line on every prompt. Instead of the cursor showing on the line as
name@machine:~$ _
,
I want it to be on the next line, like as:
name@machine:~$
_
Thanks.
bashscripts
I wish to add a new line on every prompt. Instead of the cursor showing on the line as
name@machine:~$ _
,
I want it to be on the next line, like as:
name@machine:~$
_
Thanks.
Best Answer
Open the file
~/.bashrc
(or/etc/bash.bashrc
if it should work globally for all users).Locate the variable called
PS1
.Simply put an
\n
at the end of the value of thePS1
variable.