FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DevelopBaseNote/shell/devEnvInstallTool.sh at master · DevDragonLi/DevelopBaseNote · GitHub
DevDragonLi
/
DevelopBaseNote
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
6
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
DevelopBaseNote
/
shell
/
devEnvInstallTool.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
80 lines (41 loc) · 1.74 KB
Breadcrumbs
DevelopBaseNote
/
shell
/
devEnvInstallTool.sh
Copy path
File metadata and controls
80 lines (41 loc) · 1.74 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
!/bin/bash
#
helper tool
echo
-e
"
\033[32m Dev Env install Tool By DragonLi (Version 1.0.0) \033[0m \n
"
HTTP_CODE=
`
curl --connect-timeout 5 -o /dev/null
2>&1
-s --head -w
"
%{http_code}
"
"
https://Twitter.com
"
`
if
[
${HTTP_CODE}
-ne
200 ]
then
echo
-e
"
\033[31m当前网络环境无法满足安装条件,请切换网络环境后再重试!!!\033[0m
"
exit
-1024
else
echo
-e
"
\033[32m 恭喜,当前网络环境检测通过。😁 \033[0m
"
fi
echo
-e
"
\033[35m 🚀:begain installing Homebrew,may take some times! Please Wating ☕️☕️☕️ \033[0m
"
(/bin/bash -c
"
$(
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh
)
"
)
if
[[
$?
-ne
0 ]]
then
echo
-e
"
\033[31m install Homebrew error !!!\n\n\n \033[0m
"
fi
echo
-e
"
\033[35m 🚀:begain rvm update 😁 \033[0m
"
ruby -v
&&
curl -L get.rvm.io
|
bash -s stable
source
~
/.bashrc
&&
source
~
/.bash_profile
rvm -v
&&
rvm install
"
ruby-2.6.3
"
&&
rvm use 2.6.3 --default
if
[[
$?
-ne
0 ]]
then
echo
-e
"
\033[31m update rvm error !!!\n\n\n \033[0m
"
fi
echo
-e
"
\033[35m gem update \033[0m
"
sudo gem update --system
gem list --local
gem sources --remove https://cdn.cocoapods.org/
&&
gem sources --remove https://rubygems.org/
&&
gem sources --add https://gems.ruby-china.com/
&&
gem sources -l
if
[[
$?
-ne
0 ]]
then
echo
-e
"
\033[31m update gem error !!!\n\n\n \033[0m
"
else
echo
-e
"
\033[32m update gem done \033[0m \n
"
fi
#
oh-my-zsh
sh -c
"
$(
curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh
)
"
echo
-e
"
\033[32m cocoapods , you can cancel it\033[0m
"
#
option cocoapods
sudo gem install -n /usr/local/bin cocoapods
echo
-e
"
\033[32m all operation done 🍺 🍺 🍺 \033[0m \n
"
Back
|
FazBrowse Home
|
New Git URL