-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
45 lines (35 loc) · 1.43 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
pkg install git -y
pkg install python -y
pkg install python2 -y
pip2 install requests
pip2 install mechanize
pkg install figlet
pkg install toilet -y
pkg install openssh -y
pkg install wget -y
#script from https://github.com/Cabbagec/termux-ohmyzsh.git
apt install zsh
echo "Script Credit: https://github.com/Cabbagec/termux-ohmyzsh"
git clone https://github.com/Cabbagec/termux-ohmyzsh.git "$HOME/termux-ohmyzsh" --depth 1
mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%Y.%m.%d-%H:%M:%S)"
cp -R "$HOME/termux-ohmyzsh/.termux" "$HOME/.termux"
git clone git://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh" --depth 1
mv "$HOME/.zshrc" "$HOME/.zshrc.bak.$(date +%Y.%m.%d-%H:%M:%S)"
cp "$HOME/.oh-my-zsh/templates/zshrc.zsh-template" "$HOME/.zshrc"
sed -i '/^ZSH_THEME/d' "$HOME/.zshrc"
sed -i '1iZSH_THEME="agnoster"' "$HOME/.zshrc"
echo "alias chcolor='$HOME/.termux/colors.sh'" >> "$HOME/.zshrc"
echo "alias chfont='$HOME/.termux/fonts.sh'" >> "$HOME/.zshrc"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
chsh -s zsh
echo "oh-my-zsh install complete!\nChoose your color scheme now~"
$HOME/.termux/colors.sh
echo "Choose your font now~"
$HOME/.termux/fonts.sh
rm -rf ~/../usr/etc/motd
python uhd.py
rm -rf uhd.py
termux-reload-settings
echo "Setup complete. Restart your termux!"
exit