Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
be73666f
Commit
be73666f
authored
Jun 16, 2016
by
Peter Mosmans
Committed by
Marc Cornellà
Nov 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tmux: add support for forced unicode support (#5166)
When ZSH_TMUX_UNICODE=true then tmux is informed that UTF-8 is supported. Closes #5166
parent
76d6b025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tmux.plugin.zsh
plugins/tmux/tmux.plugin.zsh
+3
-0
No files found.
plugins/tmux/tmux.plugin.zsh
View file @
be73666f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment