turn powerline stuff on by default, and setup go & powerline install pieces

This commit is contained in:
Paul Trowbridge 2020-12-07 03:58:11 +00:00
parent 05f8f35da4
commit 64f25e862f
2 changed files with 20 additions and 2 deletions

4
.vimrc
View File

@ -37,8 +37,8 @@ let g:netrw_winsize = 25
"----airline tabs for buffers------- "----airline tabs for buffers-------
let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#enabled = 1
let g:airline_theme = 'dark' let g:airline_theme = 'dark'
let g:tmuxline_powerline_separators = 0 let g:tmuxline_powerline_separators = 1
let g:airline_powerline_fonts = 0 let g:airline_powerline_fonts = 1
let mapleader = ";" let mapleader = ";"
set showcmd set showcmd
map <Leader>a :bn<cr> map <Leader>a :bn<cr>

View File

@ -30,6 +30,24 @@ do
ln -s $dir/$file ~/$file ln -s $dir/$file ~/$file
done 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------------------------------------------------------------------------ #----------------------------------------------------------install power line fonts------------------------------------------------------------------------
if [ ! -d ~/fonts ] if [ ! -d ~/fonts ]