directory in ksh prompt

directory in ksh prompt

Post by Michiel Perde » Fri, 05 Jul 1996 04:00:00



How do I get the current directory in my Korn Shell prompt (obtaining
an effect that is common in DOS thru "prompt $p$g")?

Regards, Michiel

 
 
 

directory in ksh prompt

Post by Frank Moor » Thu, 18 Jul 1996 04:00:00



> How do I get the current directory in my Korn Shell prompt (obtaining
> an effect that is common in DOS thru "prompt $p$g")?

> Regards, Michiel

Try this one. It gives your system name, your login id, and your path:

export PS1=`uname -n`:"$LOGNAME!":'$PWD>'

 
 
 

1. ksh: current directory in prompt

I've spent too much time trying to my korn shell prompt (PS1) to show
the current directory...  Help would be appreciated.  Thanks.

--------------------------------------------------------------------------
Laurie Kramer                           Genome Data Base

http://gdbdoc.gdb.org/~laurie/          http://gdbwww.gdb.org/
--------------------------------------------------------------------------
        "Nobody gets me. I'm the wind, baby." - Tom Servo
--------------------------------------------------------------------------

2. Installing FreeBSD 4.4

3. Changing prompt to reflect new current working directory in ksh

4. Samba and Apache

5. tilde in ksh directory prompt

6. Adaptec AAA-133

7. Current directory display with ksh prompt

8. Using HP Deskjet 890C on FreeBSD Ver. 3.2

9. Current directory in the ksh prompt?

10. What's 'side effects' of Ksh built-ins?

11. get $ or # in ksh prompt

12. Getting the time in prompt for KSH

13. prompt with path in ksh