From 90a9ee88044957d2bbf82b1efd2ec28077cc9dd6 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 1 May 2013 10:48:46 -0400 Subject: [PATCH] Force 256colors on xterm and rely on that setting for tmux and vim --- .aliases | 1 - .vimrc | 1 - .zshrc | 6 ++++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.aliases b/.aliases index 6ac90f9..6ab6095 100644 --- a/.aliases +++ b/.aliases @@ -11,5 +11,4 @@ alias gs="git status" alias l="ls -lvh --color=auto" alias s="cd ~/Source" alias t="tmux" -alias tmux="tmux -2" alias v="vim" diff --git a/.vimrc b/.vimrc index 60a1353..55bbcd7 100644 --- a/.vimrc +++ b/.vimrc @@ -64,7 +64,6 @@ map nc :Nyancat set guifont=Ubuntu\ Mono\ 10 colorscheme vividchalk -set t_Co=256 " 256 terminal colors set cursorline hi CursorLine cterm=NONE ctermbg=234 highlight StatusLine ctermfg=white ctermbg=236 diff --git a/.zshrc b/.zshrc index 60e015c..8c01163 100644 --- a/.zshrc +++ b/.zshrc @@ -67,6 +67,12 @@ PATH=$PATH:$HOME/bin # Customize to your needs... +# make 256colors work maybe +if [ $TERM="xterm" ]; then + export TERM=xterm-256color +fi + # tmuxinator export EDITOR='vim' [[ -s $HOME/.tmuxinator/scripts/tmuxinator ]] && source $HOME/.tmuxinator/scripts/tmuxinator +