mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
fix(tmux): respect ZSH_TMUX_UNICODE in tds (#13741)
This commit is contained in:
parent
2a5313a9d0
commit
0eecd2821e
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue