title in screen

Nils n.bruenggel at gmail.com
Fri Sep 7 21:44:04 UTC 2007


Hi all

If you install screen and type C-a " you see only "bash" as title,
which is useless. (of course assuming that you use bash and the
default bashrc) I figured out that i can set the path as title by
adding this to the bashrc:

PROMPT_COMMAND='echo -ne "\ek${USER}@${HOSTNAME}: ${PWD/$HOME/~}\e\\"'

But I would like to see the last command that i entered as title, so
far I had no success with:

PROMPT_COMMAND='echo -ne "\ek${BASH_COMMAND}\e\\"'

I don't understand this, since

echo ${BASH_COMMAND}

works.

Any ideas?

Nils




More information about the ubuntu-users mailing list