title in screen

Bill Marcum marcumbill at bellsouth.net
Mon Sep 10 01:05:13 UTC 2007


On Fri, 7 Sep 2007 23:44:04 +0200, Nils 
  <n.bruenggel at gmail.com> wrote:
> 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?
>
trap 'echo -ne "\ek${BASH_COMMAND}\e\\"' DEBUG


-- 
QOTD:
	"If I could walk that way, I wouldn't need the cologne, now would I?"





More information about the ubuntu-users mailing list