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-2.sh
81 lines (67 loc) · 2.06 KB
/
stage-2.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
#########################################
#########################################
# 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~~
git clone https://github.com/eendroroy/alien.git
cd alien
git submodule update --init --recursive
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