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

Re: hostname and bash prompt



On Mon, 2002-10-21 at 08:14, Sandip P Deshmukh wrote:
> hostname:
> deshmukh.work
> 
> 
> now, my question is, why does my prompt in bash does not show deshmukh.work?
> 
> my login prompt is just sandip@deshmukh!

What's your PS1 bash variable set to? Just read 'man bash':

\h     the hostname up to the first `.'
\H     the hostname

-- 
Claudio Bley                                 ASCII ribbon campaign (")
Debian GNU/Linux advocate                     - against HTML email  X 
http://www.cs.uni-magdeburg.de/~bley/                     & vCards / \



Reply to: