Quoting David Wright (deblis@lionunicorn.co.uk): > export PROMPT_COMMAND+=" || echo -ne '\e]0;${HOSTNAME^^} $(tty) ${HOSTNAME^^}\a'" Forgive the typo; that || was in the penultimate version that I accidentally included. It should of course be ; otherwise the title only appears after a non-zero return code. Thus: export PROMPT_COMMAND+=" ; echo -ne '\e]0;${HOSTNAME^^} $(tty) ${HOSTNAME^^}\a'" Cheers, David.