[X-Unix] Modifying .bashrc to display dns name of machine I'm
logged into
Our PAl Al
opa at nyc.rr.com
Wed Oct 13 10:52:17 PDT 2004
On 10/13/04 10:20 AM, "Lewis, Benjamin (Ben)" <blewis3 at lucent.com> wrote:
>> Life would be much easier with my hostname in the prompt. How do I do that?
>
> Hello Al
>
> Try this (stolen from O'Reillys "Learning the bash shell")
>
> PS1="\H> "
>
> in your .bash_profile file. Or
>
> PS1="\h> "
>
> for the hostname up to the first dot.
>
> Regards
>
> Ben
Thanks Ben :)
More information about the X-Unix
mailing list