Fix bug when install.sh is not called from current directory
This commit is contained in:
@ -10,9 +10,10 @@ link_config () {
|
|||||||
if [ ! -d ~/.vim/bundle ]; then
|
if [ ! -d ~/.vim/bundle ]; then
|
||||||
mkdir -p ~/.vim/bundle
|
mkdir -p ~/.vim/bundle
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||||
|
vim +PluginInstall +qall
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in $(ls *); do
|
for file in $(ls "$DIR"); do
|
||||||
[ "$file" == "install.sh" ] && continue
|
[ "$file" == "install.sh" ] && continue
|
||||||
[ "$file" == "README.md" ] && continue
|
[ "$file" == "README.md" ] && continue
|
||||||
link_config "$file"
|
link_config "$file"
|
||||||
|
4
vimrc
4
vimrc
@ -45,7 +45,9 @@ set showmatch
|
|||||||
set laststatus=2 " Always display statusline
|
set laststatus=2 " Always display statusline
|
||||||
set background=dark
|
set background=dark
|
||||||
let g:gruvbox_contrast_dark='hard'
|
let g:gruvbox_contrast_dark='hard'
|
||||||
colorscheme gruvbox
|
if filereadable( expand("$HOME/.vim/bundle/gruvbox/colors/gruvbox.vim") )
|
||||||
|
colorscheme gruvbox
|
||||||
|
endif
|
||||||
|
|
||||||
" Indentation
|
" Indentation
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
Reference in New Issue
Block a user