I used to run Gentoo and when I moved to Ubuntu all the sudden my Bash
prompt command would work correctly.  It would correctly set the
window title but it would also display "134134" in front of my prompt.
Here is my PROMPT_COMMAND line:

export PROMPT_COMMAND='echo -ne "\033k\033\134\033k$(if [ ${UID} ==
"0" ]; then echo "root"; else $(if [ ${HOSTNAME} != "malkier" ]; then
echo ${HOSTNAME}; fi;); echo [$(basename "${PWD}" | sed
"s/^\([[:alnum:][:space:].]\{0,25\}\).*$/\1/" )]; fi;)\033\134"'

Sorry but I do not remember what versions of bash and/or screen I was
using on Gentoo for sure.  Now I am running CVS screen (just started,
and the issue was initially noticed in  4.0.3) and bash  3.2.13.

Also this is the 64 bit Ubuntu if that makes any difference.

Thanks,
--
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to