From 64f25e862f6f35789b139acfbc2d89cd8ea8566a Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 7 Dec 2020 03:58:11 +0000 Subject: [PATCH] turn powerline stuff on by default, and setup go & powerline install pieces --- .vimrc | 4 ++-- setup.sh | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index e3f5590..f3924f3 100644 --- a/.vimrc +++ b/.vimrc @@ -37,8 +37,8 @@ let g:netrw_winsize = 25 "----airline tabs for buffers------- let g:airline#extensions#tabline#enabled = 1 let g:airline_theme = 'dark' -let g:tmuxline_powerline_separators = 0 -let g:airline_powerline_fonts = 0 +let g:tmuxline_powerline_separators = 1 +let g:airline_powerline_fonts = 1 let mapleader = ";" set showcmd map a :bn diff --git a/setup.sh b/setup.sh index 015dcff..5877c71 100755 --- a/setup.sh +++ b/setup.sh @@ -30,6 +30,24 @@ do ln -s $dir/$file ~/$file done +#----------------------------------------------------------install go and go-powerline-------------------------------------------------------------------- + +if [ -z "$GOPATH" ] +then + while true; do + read -p "do you want to install golang and go-powerline?" yn + case $yn in + [Yy]* ) + sudo apt-get install golang; + go get -u github.com/justjanne/powerline-go; + break;; + [Nn]* ) + exit;; + * ) echo "Please answer yes or no.";; + esac + done +fi + #----------------------------------------------------------install power line fonts------------------------------------------------------------------------ if [ ! -d ~/fonts ]