I am trying to fix my bash prompt to the following:
hostname:username hh:mm /current/path $
it worked allright using the following in my bashrc
Code:
export PS1="\e[0;1m\h\e[0;0m:\u \A \w $ "
or at least, so I thought. As it happens ,when I type a very long command line (one that wraps the line), the next line overwrites the first one (like a carriage return with no linefeed in terminal terminology). I think the problem might be due to the nonprintable characters in the prompt that somehow screws up the terminal (I have tried different terminals including xterm, rxvt, gnome-terminal, konsole, same result).
This must be a trivial problem, but I can't seem to solve it. I really want a boldface hostname because I've been using that for several years (different shell, different OS) and I use a lot of different machines and it's too easy to get the ssh sessions mixed up otherwise.