This repository has been archived by the owner on Oct 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtermux.sh
98 lines (96 loc) · 3.24 KB
/
termux.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
#!//data/com.termux/files/usr/bin/bash
current_dir=$(pwd)
pkg install ncurses-utils && clear
#vars
black=`tput setaf p`
blue=`tput setaf 4`
reset=`tput sgr0`
touch ~/.hushlogin
apt update && apt upgrade -y
clear
echo "${blue}Welcome and enjoy the script as it runs${reset}"
echo "in case the script fails and you are not seeing the ZSH shell then restart the script"
sleep 5
clear
apt install figlet -y
gem install lolcat
clear
figlet -c TERMUX...
echo "${black} Upgraded ${return}"
sleep 5
echo "${blue} Requesting access to storage ${reset}"
termux-setup-storage
echo
echo
pkg install unstable-repo
pkg install x11-repo
pkg install root-repo
clear
apt install nmap -y
apt install nano -y
apt install python -y
apt install wget -y
apt install nodejs -y
apt install curl -y
apt install ruby -y
apt install openssh -y
apt install proot -y
apt install git -y
apt install tsu -y
apt install tmux -y
apt install tree -y
apt install htop -y
apt install lolcat -y
apt install vim -y
apt install neofetch -y
pkg install termux-services -y
pkg install make -y
pkg install golang -y
echo
clear
git clone https://github.com/Towha/termux-sudo
cd termux-sudo
pkg install ncurses-utils
cat sudo > /data/data/com.termux/files/usr/bin/sudo
chmod 700 /data/data/com.termux/files/usr/bin/sudo
cd
echo "${blue}Good we have progressed but to use sudo you actually require ROOT ${reset}"
sleep 3
clear
#!//data/com.termux/files/usr/bin/bash
apt update
clear
sleep 2
echo "${blue}Creating extra buttons ${reset}"
mkdir -p ~/.termux && echo "extra-keys = [['ESC','/','-','HOME','UP','END','PGUP','DEL'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN','BKSP']]" > ~/.termux/termux.properties
termux-reload-settings
#echo "${red}Please exit and restart termux for better performance after script is done${reset}"
sleep 3
clear
rm -rf termux-sudo termux.sh
clear
figlet -c Now shall we customize our shell.. | lolcat -p 100 -a
pkg i -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh) --unattended" > /dev/null
chsh -s zsh
echo -e "${INFO} Making Oh My Zsh BETTER..."
git clone https://github.com/zsh-users/zsh-syntax-highlighting $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions $HOME/.oh-my-zsh/custom/plugins/zsh-completions
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $HOME/.oh-my-zsh/custom/themes/powerlevel10k
[[ -z $(grep "autoload -U compinit && compinit" $HOME/.zshrc) ]] && echo "autoload -U compinit && compinit" >> $HOME/.zshrc
sed -i '/^ZSH_THEME=/c\ZSH_THEME="powerlevel10k/powerlevel10k"' $HOME/.zshrc
if [ $(uname -o) != Android ]; then
sed -i '/^plugins=/c\plugins=(git sudo z command-not-found zsh-syntax-highlighting zsh-autosuggestions zsh-completions)' $HOME/.zshrc
else
sed -i '/^plugins=/c\plugins=(git z zsh-syntax-highlighting zsh-autosuggestions zsh-completions)' $HOME/.zshrc
fi
[ $(uname -o) != Android ] && chsh -s $(which zsh) || chsh -s zsh
[ $? == 0 ] && echo -e "${INFO} Oh My Zsh is better now!"
zsh
exit
sleep 3
clear
figlet And lastly it is complete
sleep 5
clear