-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
62 lines (53 loc) · 1.44 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
59
60
61
62
#!/bin/sh
cp -f .fishrc ~/
echo "source ~/.fishrc" >> ~/.config/fish/config.fish
echo -n "Are you need proxy settings?(y/n): "
read _needProxySettings
case $_needProxySettings in
[y] | '' )
echo -n "Please input your proxy adress: "
read _yourProxy
echo -n "Please input your SSID: "
read _yourSSID
echo "set _proxyAdress $_yourProxy" >> ~/.proxySetting
echo "set _SSID $_yourSSID" >> ~/.proxySetting
`cp .switch_proxy ~/`
break;;
[n] )
break;;
esac
echo -n "Are you install dein.vim(y/n): "
read _NEEDDEIN
case $_NEEDDEIN in
[y] | '' )
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh ./installer.sh ~/.cache/dein
break;;
[n] | * )
break;;
esac
echo -n "Are you install vim-plug?(y/n): "
read _NEEDVIMPLUG
case $_NEEDVIMPLUG in
[y] | '' )
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
break;;
[n] | * )
break;;
esac
cp -rf ./nvim ~/.config/
cp ./vim/.vimrc ~/
echo -n "Are you need git settings?(y/n): "
read _needGitSettings
case $_needGitSettings in
[y] | '' )
echo -n "Please input your account email: "
read _yourAccountEmail
echo -n "Please input your account name: "
read _yourAccountName
git config --global user.name "$_yourAccountName"
git config --global user.email "$_yourAccountEmail"
break;;
[n] )
break;;
esac