Hostname in shell (bash)?

Robert Storey y2kbug at ms25.hinet.net
Fri Feb 27 19:23:18 PST 2004


I personally like the following one (because no matter where you are, it
will show you the working directory as well as who is logged in). Put
this into .bashrc...

  PS1="\u@\h:\w> "
  export PS1

regards,
Robert


More information about the freebsd-questions mailing list