Tuesday, September 14, 2010

Setting Unix Prompt

The command below, when adding to your .bash_profile or .proifle will make your 
prompt look something like this:
PS1='${LOGNAME}@${HOSTNAME}:${PWD}>'; export PS1
 
You may need to set the HOSTNAME environment variable for the hostname 
part to work, like this:

HOSTNAME=`hostname`; export HOSTNAME 

No comments: