Date: Fri, 27 Feb 2004 10:06:17 -0800 From: "Derrick Ryalls" <ryallsd@datasphereweb.com> To: "'Steven N. Fettig'" <freebsd@stevenfettig.com>, <questions@freebsd.org> Subject: RE: Hostname in shell (bash)? Message-ID: <A99A5AC30F74624388EE5F757BA58A20D7A22D@RED-MSG-50.redmond.corp.microsoft.com> In-Reply-To: <403F69E6.9050701@stevenfettig.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi all, > > I searched the archives and documents on bash, but I can't figure out > how to put the hostname of the workstation I am on before the > $ of the > shell/command line. Does anyone know how to add the hostname > (preferably the first part - i.e. www, db1, etc) to the > command line for > bash 2.x? I have this in my .bashrc and .bash_profile files (\h is hostname): # set prompt PS1="===[\h][\u] \w # " PS2=">"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A99A5AC30F74624388EE5F757BA58A20D7A22D>