Force 256colors on xterm and rely on that setting for tmux and vim

This commit is contained in:
Andrew Tomaka 2013-05-01 10:48:46 -04:00
parent eaf0c8d00e
commit 90a9ee8804
3 changed files with 6 additions and 2 deletions

View file

@ -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"

1
.vimrc
View file

@ -64,7 +64,6 @@ map <Leader>nc :Nyancat<cr>
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

6
.zshrc
View file

@ -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