Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
e780209c
Unverified
Commit
e780209c
authored
Nov 26, 2018
by
Marc Cornellà
Committed by
GitHub
Nov 26, 2018
Browse files
tmux: use $terminfo to avoid echoti errors
See
https://github.com/robbyrussell/oh-my-zsh/issues/7407#issuecomment-441665143
parent
e8aba1bf
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/tmux/tmux.plugin.zsh
View file @
e780209c
...
...
@@ -36,7 +36,7 @@ alias tkss='tmux kill-session -t'
:
${
ZSH_TMUX_FIXTERM_WITH_256COLOR
:
=screen-256color
}
# Determine if the terminal supports 256 colors
if
[[
$
(
echoti
colors
)
==
256
]]
;
then
if
[[
$
terminfo
[
colors
]
==
256
]]
;
then
export
ZSH_TMUX_TERM
=
$ZSH_TMUX_FIXTERM_WITH_256COLOR
else
export
ZSH_TMUX_TERM
=
$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR
...
...
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