mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-03 04:20:01 +02:00
Merge pull request #5 from alemedeiros/tmux-force-256color
tmux: add force 256 color terminal flag
This commit is contained in:
commit
534ab56df2
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,8 @@ fi
|
||||||
# Tmux states this should be screen-256color, but you may need to change it on
|
# Tmux states this should be screen-256color, but you may need to change it on
|
||||||
# systems without the proper terminfo
|
# systems without the proper terminfo
|
||||||
[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
|
[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
|
||||||
|
# Force tmux to assume the terminal supports 256 colors.
|
||||||
|
[[ -n "$ZSH_TMUX_FORCE_256COLOR" ]] || ZSH_TMUX_FORCE_256COLOR=false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -60,6 +62,7 @@ fi
|
||||||
function _zsh_tmux_plugin_run() {
|
function _zsh_tmux_plugin_run() {
|
||||||
local tmux_cmd
|
local tmux_cmd
|
||||||
tmux_cmd=(command tmux)
|
tmux_cmd=(command tmux)
|
||||||
|
[[ "$ZSH_TMUX_FORCE_256COLOR" == "true" ]] && tmux_cmd+="-2"
|
||||||
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+="-CC"
|
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+="-CC"
|
||||||
[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_cmd+=(-f $_ZSH_TMUX_FIXED_CONFIG)
|
[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_cmd+=(-f $_ZSH_TMUX_FIXED_CONFIG)
|
||||||
if [[ -n "$@" ]]; then
|
if [[ -n "$@" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue