NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How do you set $PS1 on /bin/ksh



In addition to the other recommendations,
don't have the PS1 prompt run commands everytime the prompt is 
generated. For example, you don't need to run commands each prompt to 
figure out your username and hostname as likely they won't or cannot 
change in the same shell session. For example:

PS1='`whoami`$ '

vs.

PS1=`whoami`"$ "



Home | Main Index | Thread Index | Old Index