-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbootstrap.sh
executable file
·44 lines (33 loc) · 942 Bytes
/
bootstrap.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
#!/bin/bash
function die()
{
echo "${@}"
exit 1
}
echo "Welcome to..."
cat << "EOF"
______ ______ __ __ __ __ __
/\ ___\ /\ ___\ /\ \ / / /\ \ /\ "-./ \
\ \___ \ \ \ __\ \ \ \'/ \ \ \ \ \ \-./\ \
\/\_____\ \ \_____\ \ \__| \ \_\ \ \_\ \ \_\
\/_____/ \/_____/ \/_/ \/_/ \/_/ \/_/
EOF
echo
vim_dir="$HOME/.vim"
git clone --recursive https://github.com/SebiSujar/sevim $vim_dir \
|| die "Could not clone the repository to ${HOME}/.vim"
ln -s $vim_dir/vimrc $HOME/.vimrc \
|| die "Could not create symbolic link in ${HOME}"
echo "installing plugins, this may take a while"
echo | echo | vim +PluginInstall +qall &>/dev/null &
pid=$!
#spinner
spin='-\|/'
i=0
while kill -0 $pid 2>/dev/null
do
i=$(( (i+1) %4 ))
printf "\r${spin:$i:1}"
sleep .1
done
printf "\rDone!\nTime to vim hell out of sevim!\n"