8
6
I'm trying to improve the aspect of GNU Screen using the screenrc file, I tuned colors, status line, caption and the list of the loaded windows.
The only thing I'm not able to achieve is getting the caption with the current executed command as in the below picture, note the vim caption in the right pane:
What I currently have is this, and what I would like to obtain is having captions (and if possible also hardstatus line) with |0 less| 1 man
instead of the current |0 bash| 1 bash
.
How can I do this?
Update: Until now the only working solution I found is in this post but it doesn't print what I need...
However that is the only working dynamic title I found until now.
PROMPT_COMMAND='echo -ne "\033k\033\134\033k${HOSTNAME}[`basename ${PWD}`]\033\134"'`
in .bashrc and shelltitle '] |bash'
in .screenrc. The title is updated with the hostname and the basename of the working directory, but the prompt is completely wrong (it also has a leading space):
134134fabio@host10:~$
checkout the updates on the answer – Torian – 2011-02-12T02:03:14.957