Skip to content

Commit 302069b

Browse files
committed
prompt for install script
1 parent 7c0ad64 commit 302069b

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

install.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
clear
12
echo "Well congrats on taking the big step into my .ViM config!"
23
echo ""
34
echo "If you want to keep your .vimrc then back that shit up!"
45
echo ""
5-
echo "I'm about to override anything you have in thurr"
6-
echo ""
7-
echo "Cool?"
8-
9-
ln -sf ~/.vim/vimrc ~/.vimrc
10-
cd ~/.vim
11-
git submodule update --init
12-
6+
while true; do
7+
read -p "Do you want to continue y or n? " yn
8+
case $yn in
9+
[Yy]* )
10+
ln -sf ~/.vim/vimrc ~/.vimrc ;
11+
cd ~/.vim ;
12+
git submodule update --init ;
13+
break;;
14+
[Nn]* ) echo "Bye";
15+
exit;;
16+
* ) echo "Please answer yes or no.";
17+
echo "";;
18+
esac
19+
done

0 commit comments

Comments
 (0)