From c87fa9ea350bdd22bed7c16bffb0bb4572429c8d Mon Sep 17 00:00:00 2001 From: djib Date: Wed, 2 Oct 2019 15:36:39 +0200 Subject: [PATCH] Fix bug when install.sh is not called from current directory --- install.sh | 3 ++- vimrc | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 33c3649..2708b3e 100755 --- a/install.sh +++ b/install.sh @@ -10,9 +10,10 @@ link_config () { if [ ! -d ~/.vim/bundle ]; then mkdir -p ~/.vim/bundle git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim + vim +PluginInstall +qall fi -for file in $(ls *); do +for file in $(ls "$DIR"); do [ "$file" == "install.sh" ] && continue [ "$file" == "README.md" ] && continue link_config "$file" diff --git a/vimrc b/vimrc index f157334..aef274f 100644 --- a/vimrc +++ b/vimrc @@ -45,7 +45,9 @@ set showmatch set laststatus=2 " Always display statusline set background=dark let g:gruvbox_contrast_dark='hard' -colorscheme gruvbox +if filereadable( expand("$HOME/.vim/bundle/gruvbox/colors/gruvbox.vim") ) + colorscheme gruvbox +endif " Indentation set tabstop=4