Fixed major fckup with Vundle installation
This commit is contained in:
@@ -46,6 +46,7 @@ set langmenu=en_US.UTF-8
|
|||||||
|
|
||||||
"Colors
|
"Colors
|
||||||
"{{{
|
"{{{
|
||||||
|
set t_Co=256
|
||||||
colorscheme izi
|
colorscheme izi
|
||||||
""}}}
|
""}}}
|
||||||
|
|
||||||
|
|||||||
21
setup.sh
21
setup.sh
@@ -1,9 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
repo="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
repo="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
|
||||||
|
|
||||||
read -p "Would you like to use template from this repository
|
read -p "
|
||||||
as your .vimrc? WARNING: if you do, the existing ~/.vimrc
|
Would you like to use template from this repository as your .vimrc?
|
||||||
will be deleted! [y/n]: " responce
|
WARNING: if you do, the existing ~/.vimrc will be deleted!
|
||||||
|
[y/n]: " responce
|
||||||
|
|
||||||
[[ "$responce" = "y" ]] \
|
[[ "$responce" = "y" ]] \
|
||||||
&& { [ -f "$HOME/.vimrc" ] && rm "$HOME/.vimrc"; \
|
&& { [ -f "$HOME/.vimrc" ] && rm "$HOME/.vimrc"; \
|
||||||
@@ -16,20 +17,20 @@ will be deleted! [y/n]: " responce
|
|||||||
|
|
||||||
[ -d "$HOME/.vim/colors" ] \
|
[ -d "$HOME/.vim/colors" ] \
|
||||||
&& echo "~/.vim/colors already exists, deal with it manually" \
|
&& echo "~/.vim/colors already exists, deal with it manually" \
|
||||||
|| ln -s "$repo/colors" "$HOME/.vim/colors"
|
|| ln -vs "$repo/colors" "$HOME/.vim/colors"
|
||||||
|
|
||||||
[ -d "$HOME/.vim/plugin" ] \
|
[ -d "$HOME/.vim/plugin" ] \
|
||||||
&& echo "~/.vim/plugin already exists, deal with it manually" \
|
&& echo "~/.vim/plugin already exists, deal with it manually" \
|
||||||
|| ln -s "$repo/plugin" "$HOME/.vim/plugin"
|
|| ln -vs "$repo/plugin" "$HOME/.vim/plugin"
|
||||||
|
|
||||||
[ -d "$HOME/.vim/ftplugin" ] \
|
[ -d "$HOME/.vim/ftplugin" ] \
|
||||||
&& echo "~/.vim/ftplugin already exists, deal with it manually" \
|
&& echo "~/.vim/ftplugin already exists, deal with it manually" \
|
||||||
|| ln -s "$repo/ftplugin" "$HOME/.vim/ftplugin"
|
|| ln -vs "$repo/ftplugin" "$HOME/.vim/ftplugin"
|
||||||
|
|
||||||
[ -d "$HOME/.vim/bundle" ] \
|
[ -d "$HOME/.vim/bundle" ] \
|
||||||
&& echo "You seem to already have some plugin manager" \
|
&& echo "You seem to already have some plugin manager" \
|
||||||
|| { mkdir "$HOME/.vim/bundle"; \
|
|| { mkdir -v "$HOME/.vim/bundle"; \
|
||||||
git clone https://github.com/Vundle/Vundle.vim.git \
|
git clone -v https://github.com/VundleVim/Vundle.vim.git \
|
||||||
"$HOME/.vim/bunlde/Vundle.vim"; }
|
"$HOME/.vim/bundle/Vundle.vim"; }
|
||||||
|
|
||||||
echo "Setup finished."
|
echo "Setup finished."
|
||||||
|
|||||||
Reference in New Issue
Block a user