Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Customizing PS1 prompt: (1 Item)
   
Customizing PS1 prompt  
I want to change PS1 prompt like this.
username@hostname 'current working directory'
$

I did the following and \n is not understood by shell
export PS1='$USER_NAME@$HOSTNAME $PWD\n$'

Is there a escape sequence for new line?

I also would like to set green color for $USER_NAME@$HOSTNAME and yellow color '$PWD'. 

What is the escape sequence that shell understands for color and new line? 

Help appreciated.

Thanks and Regards,
Dharmaraj G