forked from Hax4us/TermuxBlack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
31 lines (26 loc) · 1 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
#!/usr/bin/env sh
# Create separate directory for my repositor
decoration() {
apt-get install gnupg -yq --silent
mkdir -p ~/.termux
for i in colors.properties termux.properties font.ttf; do
wget -q https://github.com/Hax4us/TermuxBlack/raw/master/style/$i -O ~/.termux/$i
done
#rm -r $PREFIX/etc/motd
#echo "toilet -F metal -F border -f future termux black" >> $PREFIX/etc/bash.bashrc
}
addrepo() {
# Add repo in separate file
mkdir -p $PREFIX/etc/apt/sources.list.d && printf "deb https://hax4us.github.io/TermuxBlack/ termuxblack main" > $PREFIX/etc/apt/sources.list.d/termuxblack.list
# Add gpg public key
wget -q https://hax4us.github.io/TermuxBlack/termuxblack.key -O termuxblack.key && apt-key add termuxblack.key
# just update
apt-get update -yq --silent
}
echo "[*] Installing TermuXBlacK ..."
decoration
addrepo
echo "[*] Finished :)"
# Now trigger broadcast to make changes visible
am broadcast --user 0 -a com.termux.app.reload_style com.termux > /dev/null
echo "[*] Now open new session & enjoy"