ksh prompt settings

devusr at relay-nswc.navy.mil devusr at relay-nswc.navy.mil
Sat Dec 17 00:52:15 AEST 1988


C Hudson Hendren III <hudson at 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 at relay-nswc.navy.mil	(703)663-2137
"I've upped my standards; now up yours" -- Pat Paulsen



More information about the Comp.unix.questions mailing list