diff options
author | Peter Mosmans <support@go-forward.net> | 2016-06-16 11:05:09 +1000 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2019-11-23 22:12:36 +0100 |
commit | be73666f34c3a2762d606be7f1997b120929e17c (patch) | |
tree | 8fb1c8b4cb91e7b1e3e6ad515812e893352eba24 /plugins/tmux/tmux.plugin.zsh | |
parent | 76d6b0256398ad1becbc304a78f51bbacfee50e5 (diff) | |
download | zsh-be73666f34c3a2762d606be7f1997b120929e17c.tar.gz zsh-be73666f34c3a2762d606be7f1997b120929e17c.tar.bz2 zsh-be73666f34c3a2762d606be7f1997b120929e17c.zip |
tmux: add support for forced unicode support (#5166)
When ZSH_TMUX_UNICODE=true then tmux is informed that UTF-8 is supported.
Closes #5166
Diffstat (limited to 'plugins/tmux/tmux.plugin.zsh')
-rw-r--r-- | plugins/tmux/tmux.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh index dad3db578..e52443a71 100644 --- a/plugins/tmux/tmux.plugin.zsh +++ b/plugins/tmux/tmux.plugin.zsh @@ -36,6 +36,8 @@ alias tkss='tmux kill-session -t' : ${ZSH_TMUX_FIXTERM_WITH_256COLOR:=screen-256color} # Set the configuration path : ${ZSH_TMUX_CONFIG:=$HOME/.tmux.conf} +# Set -u option to support unicode +: ${ZSH_TMUX_UNICODE:=false} # Determine if the terminal supports 256 colors if [[ $terminfo[colors] == 256 ]]; then @@ -62,6 +64,7 @@ function _zsh_tmux_plugin_run() { local -a tmux_cmd tmux_cmd=(command tmux) [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC) + [[ "$ZSH_TMUX_UNICODE" == "true" ]] && tmux_cmd+=(-u) # Try to connect to an existing session. [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]] && $tmux_cmd attach |