seebi / tmux-colors-solarized

A color theme for the tmux terminal multiplexer using Ethan Schoonover’s Solarized color scheme
http://ethanschoonover.com/solarized
1.08k stars 148 forks source link

Not working on ubuntu15.04 with tmux inside gnome-terminal #14

Open ishankhare07 opened 9 years ago

ishankhare07 commented 9 years ago

all other colors are set except the background color

rpereira commented 8 years ago

@ishankhare07, it's working for me. Can you show your tmux.conf file?

elementalvoid commented 8 years ago

I just went through the exercise of fixing this. Here's what works for me.

.bashrc

if [[ -n ${TMUX} ]]; then
  export TERM="screen-256color"
else
  export TERM="xterm-256color"
fi

.tmux.conf

set-option -g default-terminal "screen-256color"

.vimrc

set t_Co=256
set background=dark
silent! colorscheme solarized " Silence errors in case it isn't installed yet

The key change for me was setting the proper TERM for the shell. I had used xterm-256color for the longest time and just ignored the slight vim/tmux color issues. Once I dug into it I discovered that vi was doing the wrong thing because it didn't realize it was within a screen/tmux environment. Changing the TERM to screen-256color fixed all my issues.

rpereira commented 8 years ago

I solved this with this one-liner.

Also, set t_Co=16 on .vimrc.

On 2015-09-24 17:53, Matt Klich wrote:

I just went through the exercise of fixing this. Here's what works for me.

.bashrc

|if [[ -n ${TMUX} ]]; then export TERM="screen-256color" else export TERM="xterm-256color" fi |

.tmux.conf

|set-option -g default-terminal "screen-256color" |

.vimrc

|set t_Co=256 set background=dark silent! colorscheme solarized " Silence errors in case it isn't installed yet |

The key change for me was setting the proper TERM for the shell. I had used xterm-256color for the longest time and just ignored the slight vim/tmux color issues. Once I dug into it I discovered that vi was doing the wrong thing because it didn't realize it was within a screen/tmux environment. Changing the TERM to screen-256color fixed all my issues.

— Reply to this email directly or view it on GitHub https://github.com/seebi/tmux-colors-solarized/issues/14#issuecomment-142986468.

ishankhare07 commented 8 years ago

installation instructions say just to put

cat tmuxcolors-256.conf >> ~/.tmux.conf