gjok
gjok

Reputation: 195

Command prompt carriage returns

I find it very difficult to read the command line, and am I wondering if there is a way to force 2 carriage returns after I press the Enter key, to space it out more.

I am using Windows 7 command line, but also ssh into a virtual box running linux. I find the git outputs esp hard to read. Thanks

Upvotes: 0

Views: 1179

Answers (2)

dbenham
dbenham

Reputation: 130819

Not sure if this helps with your virtual linux and git output, but you can define the PROMPT to issue a newline before the standard c:\path> prompt.

prompt $_$P$G

Upvotes: 1

Jakuje
Jakuje

Reputation: 25956

You can set up on Linux variable PS1 for example as

PS1='\n `echo -n \[\e[1\;33m\]` \t`echo \[\e[0m\]` \h \$'

or just add newline in the beginning of the PS1 variable in your .bashrc:

PS1="\n$PS1"

Upvotes: 1

Related Questions