Browse Source

Fix bug when install.sh is not called from current directory

master
djib 6 months ago
parent
commit
c87fa9ea35
2 changed files with 5 additions and 2 deletions
  1. +2
    -1
      install.sh
  2. +3
    -1
      vimrc

+ 2
- 1
install.sh View File

@@ -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"

+ 3
- 1
vimrc View File

@@ -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

Loading…
Cancel
Save