From e51807edc5d4c7fda11736e68a0fe5df79fc8aa8 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Wed, 15 Nov 2017 15:11:07 -0500 Subject: [PATCH] add solarized theme, fix tmux colors in bash --- .gitmodules | 6 +++--- bash_profile | 22 ++++++++++++++++++++++ vim/pack/themes/opt/solarized8 | 1 + vimrc | 9 ++++++++- 4 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 bash_profile create mode 160000 vim/pack/themes/opt/solarized8 diff --git a/.gitmodules b/.gitmodules index 5ad641a..ade0780 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,6 +7,6 @@ [submodule "vim/bundle/vim-unimpaired"] path = vim/bundle/vim-unimpaired url = https://github.com/tpope/vim-unimpaired -[submodule "vim/bundle/vim-colors-solarized"] - path = vim/bundle/vim-colors-solarized - url = https://github.com/altercation/vim-colors-solarized.git +[submodule "vim/pack/themes/opt/solarized8"] + path = vim/pack/themes/opt/solarized8 + url = https://github.com/lifepillar/vim-solarized8.git diff --git a/bash_profile b/bash_profile new file mode 100644 index 0000000..8fbea55 --- /dev/null +++ b/bash_profile @@ -0,0 +1,22 @@ +#if [[ "$SSH_CONNECTION" != "" && "$MY_SSH_CONNECTION" != "yes" ]]; then +# /bin/zsh +#fi +#export SHELL=/bin/zsh +#exec /bin/zsh -l + +if [[ -z $TMUX ]]; then + if [ -e /usr/share/terminfo/x/xterm-256color ]; then # may be xterm-256 depending on your distro + export TERM='rxvt-256color' + else + export TERM='rxvt' + fi +else + if [ -e /usr/share/terminfo/s/screen-256color ]; then + export TERM='screen-256color' + else + export TERM='screen' + fi +fi + +export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 13)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" +export PATH=$HOME/.local/bin:$PATH diff --git a/vim/pack/themes/opt/solarized8 b/vim/pack/themes/opt/solarized8 new file mode 160000 index 0000000..c75b42d --- /dev/null +++ b/vim/pack/themes/opt/solarized8 @@ -0,0 +1 @@ +Subproject commit c75b42d8a2207f7b514d2fa697a50051c4170b87 diff --git a/vimrc b/vimrc index bfde604..75968be 100644 --- a/vimrc +++ b/vimrc @@ -1,3 +1,8 @@ +"""Weird tmux settings +let &t_8f = "\[38;2;%lu;%lu;%lum" +let &t_8b = "\[48;2;%lu;%lu;%lum" + + """ Start vim.plug execute pathogen#infect() @@ -38,8 +43,10 @@ set relativenumber " Autoindent set autoindent -" Syntax highlighting +" Colors syntax enable +set background=dark +colorscheme solarized8 filetype plugin on " Fuzzy Finding