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
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
> 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
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
--------------------------------------------------------------------------
3. Changing prompt to reflect new current working directory in ksh
5. tilde in ksh directory prompt
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?
12. Getting the time in prompt for KSH