This repository has been archived by the owner on Mar 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
stage-1.sh
142 lines (118 loc) · 3.42 KB
/
stage-1.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#########################################
#########################################
# The following script will download and install the following repos onto a Project Trident Install:
# https://github.com/ohmyzsh/oh-my-zsh
# https://github.com/project-trident/fonts
# https://github.com/zsh-users/antigen
# https://github.com/eendroroy/alien
# https://github.com/eendroroy/promptlib-zsh
# https://github.com/chrissicool/zsh-256color
# https://github.com/mafredri/zsh-async
#########################################
#########################################
# Install Powerline fonts
echo ~~Installing Powerline Fonts~~
# clone repo
cd /tmp/
git clone https://github.com/project-trident/fonts.git --depth=1
if [ $? -eq 0 ]; then
echo Powerline Fonts clone successful
else
echo Powerline Fonts clone failed
exit 1
fi
# install fonts
cd fonts
sh ./install.sh
if [ $? -eq 0 ]; then
echo Fonts Installed
else
echo Install Failed
exit 1
fi
# update the font cache
fc-cache -vf
if [ $? -eq 0 ]; then
echo Font Cache Updated
else
echo Font Cache Not Updated
exit 1
fi
# move back to ~
cd ~
#########################################
#########################################
# install ohmyzsh
echo ~~Installing Oh-My-ZSH~~
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
if [ $? -eq 0 ]; then
echo OhMyZSH Installed
else
echo OhMyZSH Install Failed
exit 1
fi
#########################################
#########################################
# install antigen
echo ~~Installing Antigen~~
curl -L git.io/antigen > antigen.zsh
if [ $? -eq 0 ]; then
echo Antigen ZSH Script downloaded
else
echo Antigen Script download failed
exit 1
fi
#########################################
#########################################
# install alien
echo ~~Installing Alien Theme~~
antigen theme eendroroy/alien alien
if [ $? -eq 0 ]; then
echo Alien Theme cloned successfully
else
echo Alien Theme clone Failed
exit 1
fi
#########################################
#########################################
# download and install submodules
~Installing Required SubModules~~
# instal promptlib
git clone https://github.com/eendroroy/promptlib-zsh.git ~/alien/libs/promptlib
if [ $? -eq 0 ]; then
echo promptlib clone successful
else
echo promptlib clone failed
exit 1
fi
# instal zsh-alien
git clone https://github.com/mafredri/zsh-async.git ~/alien/libs/zsh-async
if [ $? -eq 0 ]; then
echo zsh-async clone successful
else
echo zsh-async clone failed
exit 1
fi
# instal zsh-256-color
git clone https://github.com/chrissicool/zsh-256color.git ~/alien/libs/zsh-256color
if [ $? -eq 0 ]; then
echo zsh-256color clone successful
else
echo zsh-256color clone failed
exit 1
fi
#########################################
#########################################
# copy down primary ZSH config file
echo ~~Downloading Main ZSH Script~~
curl -L https://raw.githubusercontent.com/project-trident/trident-zsh-theme/master/.zshrc > ~/.zshrc
if [ $? -eq 0 ]; then
echo Main ZSH Script downloaded
else
echo Main ZSH Script download failed
exit 1
fi
#########################################
#########################################
echo The Trident ZSH Theme is not installed, please restart your terminal to finalize the ZSH init scripts.
echo If have any issues, please report them here: https://github.com/project-trident/trident-zsh-theme/issues