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
This commit is contained in:
parent
a07126330b
commit
a6186e18a3
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
|
# human friendly unique session name for this directory
|
||||||
local session_name="${dir}-${md5:0:6}"
|
local session_name="${dir}-${md5:0:6}"
|
||||||
# create or attach to the session
|
# 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
|
alias tds=_tmux_directory_session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue