[X-Unix] Modifying .bashrc to display dns name of machine I'm logged into

Lewis, Benjamin (Ben) blewis3 at lucent.com
Wed Oct 13 07:20:59 PDT 2004


>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


More information about the X-Unix mailing list