dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 33bfaace3816ff58729eb779641b9efb6904b813
parent 681eacb1e2e06402a751c13d5df7a44e27600851
Author: Duncan Overbruck <overbruck@mir.de>
Date:   Thu,  2 Oct 2014 15:59:34 +0200

better install

Diffstat:
install-vim | 22+++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/install-vim b/install-vim @@ -2,14 +2,26 @@ cd $(dirname $BASH_SOURCE) BASE=$(pwd) +VIM_PLUG=~/.vim/autoload/plug.vim +VIM_RC=~/.vimrc -export GIT_SSL_NO_VERIFY=true -mkdir -p ~/.vim/autoload -curl --insecure -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim +echo $VIM_PLUG -# vimrc -mv -v ~/.vimrc ~/.vimrc.old 2> /dev/null +# download plug +if [ ! -f "$VIM_PLUG" ]; then + export GIT_SSL_NO_VERIFY=true + mkdir -p ~/.vim/autoload + curl --insecure -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim +fi + +# move vimrc to vimrc.old +if [ -f "$VIM_RC" ]; then + mv -v ~/.vimrc ~/.vimrc.old 2> /dev/null +fi + +# link vimrc to repository ln -sf $BASE/vimrc ~/.vimrc +# install plugins vim +PlugInstall +qall