I am beginner in using ksh93. So I tried to get the look and feel I knew from 
bash. The following website was useful: http://www.understudy.net/custom.html
I added to my /etc/ksh.kshrc the following text:

export USERNAME=`whoami`
export HOSTNAME=`hostname` 
# monochrome
#export PS1="'$USERNAME'@'$HOSTNAME':"'$PWD'" # "
# color
export 
PS1="$'\E[31m''$USERNAME'$'\E[0m'@$'\E[1;31m''$HOSTNAME'$'\E[0m':"$'\E[1;34m''$PWD'"
 $'\E[0m'# "

I think it would be useful for other beginners to put some examples in that 
config-file instead of searching the web... 

I was wondering about some strange behaviour after setting the new prompt. 
Sometimes when using the shell-history (by clicking arrow up key) the prompt 
got overwritten by the command from history. That means the command from 
history didn't come after the prompt but overwrote it. So I was able to move 
the cursor (with the arrow left key) in front of the position where the end of 
the prompt should have been. It looked like the prompt hadn't been set. But in 
the next line (after pressing enter) the prompt was there as desired.

o.k. that's not a real big issue but confusing.

And now sth completely different...
Are there plans to put ksh93 to the standard shell of project indiana?

Best regards, Otmar Meier
--
This message posted from opensolaris.org

Reply via email to