Closed rey closed 8 years ago
export TERM=xterm-256color
http://stackoverflow.com/questions/19327836/why-am-i-seeing-only-8-colors-in-terminal-xfce-terminal
The above fixes the colours in tmux
but the colours are still odd in vim
Do the above and make sure those 2 colour lines in the .vimrc
are commented out
This is still an issue 👺
With the above:
tmux
colours are correctvim
colours are correctvim
in tmux
colours are wonky (mainly the background)I "fixed" this by making sure everything identified as screen-256color
by adding this to my .bashrc
: https://github.com/rey/.dot/blob/master/bashrc#L1.
It's probably a bad idea but it works for the moment. In the future I should investigate the fact that it could be due to xfce4-terminal
or something more obtuse.
tmux
requires screen-256color
, @cenau suggested that I add a line to my bashrc
that checks if the $TMUX
variable is set. If so then set screen-256color
otherwise set xterm-256color
.
That seems to do the trick! https://github.com/rey/.dot/commit/b1ee543191c822c20b47989de3aff43a02cd7400
tmux
colours aren't correctvim
colours aren't correct intmux