Greetings,

For my preferences, tmux's automatic rename is not convenient. If for
example I execute Ranger, a python file manager, I see 'python' in the
label instead of 'ranger'. Also, the name change is not immediate, a
refresh is needed, starting and quiting.

My tmux settings:

set -g automatic-rename on
set -g automatic-rename-format "#{pane_current_command}"

So I'm trying to simulate GNU Screen's shelltitle feature in tmux, where
the command entered in shell (for example ranger) is shown, not the app
running (ie python). It's accurate and immediate, no need to wait for
refresh. It also returns to 'bash' immediately, after quitting app.

In tmux manual I saw that it is possible to be done screen's way:
set -g allow-rename on

and changing bash prompt. I already have this in .bashrc for screen:
case "$TERM" in
screen*|tmux*)
PS1="\n\e[7m\t \e[1m\w \e[m\n\n"'\[\033k\033\\\]''\$ '

I also tried,
PROMPT_COMMAND='printf "\033k\033\134"'

as in tmux manual
(the exact is PROMPT_COMMAND="printf '\033k\033\\';"${PROMPT_COMMAND} )

The result I get is just an asterisk (*) which doesn't change.

Any ideas how to achieve shelltitle's behaviour?
tmux version 2.8 on Debian

Thank you in advance

--
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/d114db31-3962-9c0c-b809-1696e813d14f%40gmx.com.

Reply via email to