-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·58 lines (42 loc) · 1.1 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
cat << EOF
. .
|_ |. ,.._ _
[_)| \/ |[ | )
blapco's Vim bundle.
- https://blapco.xyz
- https://git.blapco.xyz/blvim
EOF
echo "Installing blvim..."
cd ~
if [ ! -d ".blvim" ]; then
echo "Cloning blvim into ~/.blvim"
git clone https://git.blapco.xyz/blvim ~/.blvim
else
echo "Updating blvim configuration."
git -C ~/.blvim pull
fi
if [ ! -d ".config" ]; then
mkdir -p ~/.config
fi
echo "Soft-linking vim configuration."
ln -sfnv ~/.blvim ~/.vim
ln -sfnv ~/.blvim ~/.config/nvim
ln -sfnv ~/.blvim/vimrc ~/.blvim/init.vim
ln -sfnv ~/.blvim/core/gui.vim ~/.blvim/ginit.vim
echo "Installing Vim-Plug."
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
if [ ! -f ".bash_aliases" ]; then
touch ~/.bash_aliases
echo "alias blvim=vim" >> ~/.bash_aliases
fi
echo "Installing plugins!"
vim +'PlugInstall --sync' +qa
if [ ! -f ".bash_aliases" ]; then
touch .bash_aliases
echo "alias blvim=vim" >> .bash_aliases
else
echo "alias blvim=vim" > .bash_aliases
fi
echo "Finished!"