LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Korn Shell PS1 (https://www.linuxquestions.org/questions/linux-newbie-8/korn-shell-ps1-438599/)

c19h28O2 04-25-2006 05:27 AM

Korn Shell PS1
 
Hi,

I would like my prompt to have my PWD but with the commands entered on a new line so...

/userhome/someuser
$ ls

the PWD i have got working but can only get

/userhome/someuser $

Is it possible to have a newline command in the PS1 variable?

Thanks

C19

mjjzf 04-25-2006 06:05 AM

In your .bashrc, simply insert
PS1='\w \n \$ '

/edit > I now see you were referring to ksh. The BASH newline is \n - I am not sure how it goes in Korn.

c19h28O2 04-25-2006 06:09 AM

Hi,

Thanks for the reply however I'm using ksh which doesn't except bash ps1 commands.

If I use the i get w n $ in the command line...

Thanks

C19

mjjzf 04-25-2006 06:23 AM

Look at this one > http://arkiv.netbsd.se/?ml=netbsd-us...6-01&t=1703552

c19h28O2 04-25-2006 06:56 AM

Hmmmmm i'm at work and cannot reach that site!


All times are GMT -5. The time now is 08:18 PM.