Cygwin: PS1 cannot wrap lines on the same line (2)

0

I found that in my cygwin,

The PS1 console have 2 lines and I want to solve it. This is due to "\n" at the end of PS1 But I cannot export it well due to "not a valid identifier" error.

How can I solve this? Many thanks.

enter image description here

Kit Ho

Posted 2012-01-18T08:32:44.320

Reputation: 3 467

Answers

2

When you say export, you don't use the dollar sign.

So it's export PS1=Hello World, not export $PS1=Hello World.

Alois Mahdal

Posted 2012-01-18T08:32:44.320

Reputation: 2 014

Thx...it's just my poor linux knowledge – Kit Ho – 2012-01-18T09:11:40.623