[comp.unix.questions] ksh prompt settings

pjh@otter.hpl.hp.com (Patrick Hyland) (12/15/88)

Try:

PS1="$(uname -n)!!$(logname){!} " ; export PS1;

							Patrick Hyland.

devusr@relay-nswc.navy.mil (12/16/88)

C Hudson Hendren III <hudson@vsedev.vse.com> writes:
>I would like to have an exclamation point ("!") in my Korn shell prompt. 

try this:
PS1=$(uname -n)'\\!'$(logname)'{\!} '

disclaimer: i don't have a ksh, but quoting the !'s thusly gives the desired
results in my csh. 

/dave
---
Dave Paulson	dpaulso@relay-nswc.navy.mil	(703)663-2137
"I've upped my standards; now up yours" -- Pat Paulsen