-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·38 lines (33 loc) · 849 Bytes
/
install.sh
File metadata and controls
executable file
·38 lines (33 loc) · 849 Bytes
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
#!/bin/bash
if [ -a $HOME/.vimrc ]
then
echo "Do you wish to backup your .vimrc file?"
select yn in "Yes" "No"; do
case $yn in
Yes )
echo "Backup .vimrc file to .vimrc_old"
mv $HOME/.vimrc $HOME/.vimrc_old
break;;
No )
rm $HOME/.vimrc
exit;;
esac
done
fi
echo "Do you wish to install the bash aliases?"
select yn in "Yes" "No"; do
case $yn in
Yes )
ln -s $HOME/.vim/.bash_aliases $HOME/.bash_aliases
break;;
No ) exit;;
esac
done
echo "initializing submodules"
git submodule init
echo "updating submodules"
git submodule foreach git pull origin master
git submodule update
ln -s $HOME/.vim/alexesba/colors $HOME/.vim/colors
echo "installing all vim plugins defined on .vimrc file"
vim +PluginInstall +qall