Replies: 3 comments 2 replies
-
Did you see this part of https://wezfurlong.org/wezterm/recipes/passing-data.html#user-vars ?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Update:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I still can't get around of using hook to refresh session name. Its too hard to me now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basiclly, I want to refresh the tmux's session name inside wezterm tab title when the tmux session changed in the current focused tab. The basic logic is to set a user var for tmux session name and use
set-hook -g client-session-changed
to auto-trigger updating of the var.I have read carefully of these doc and tried with following code but it doesn't work.
Is there a good way to do this?
1: https://wezfurlong.org/wezterm/shell-integration.html
2: https://wezfurlong.org/wezterm/recipes/passing-data.html
3: https://github.com/wez/wezterm/blob/main/assets/shell-integration/wezterm.sh
The main pain point is I could NOT get tmux send OSC 1337 Escape sequences to set user vars by keybind or by hook, to achieve that I have to manually input the OSC 1337 Escape sequences in terminal:
Beta Was this translation helpful? Give feedback.
All reactions