rey / computer

A reproducible and lightweight desktop environment to run on Ubuntu.
0 stars 1 forks source link

Debug and fix colours #2

Closed rey closed 8 years ago

rey commented 8 years ago
rey commented 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

rey commented 8 years ago

Do the above and make sure those 2 colour lines in the .vimrc are commented out

rey commented 8 years ago

This is still an issue 👺

With the above:

rey commented 8 years ago

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.

rey commented 8 years ago

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.

rey commented 8 years ago

That seems to do the trick! https://github.com/rey/.dot/commit/b1ee543191c822c20b47989de3aff43a02cd7400