From 0eecd2821e6dafbe0025d2003f9dc8959851c47a Mon Sep 17 00:00:00 2001 From: Masaru Iritani <25241373+masaru-iritani@users.noreply.github.com> Date: Mon, 18 May 2026 15:51:48 +0900 Subject: [PATCH] fix(tmux): respect ZSH_TMUX_UNICODE in tds (#13741) --- plugins/tmux/tmux.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index c501ad701..651e72459 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -183,7 +183,10 @@ function _tmux_directory_session() { # human friendly unique session name for this directory local session_name="${dir}-${md5:0:6}" # create or attach to the session - tmux new -As "$session_name" + local -a tmux_cmd + tmux_cmd=(command tmux) + [[ "$ZSH_TMUX_UNICODE" == "true" ]] && tmux_cmd+=(-u) + $tmux_cmd new -As "$session_name" } alias tds=_tmux_directory_session