forked from KujouYuko/oh-my-termux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·55 lines (48 loc) · 1.44 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
46
47
48
49
50
51
52
53
54
55
#!/data/data/com.termux/files/usr/bin/bash
#
# Author: TH779
# Email : [email protected]
#
DIR="$(pwd)"
echo " [ ] Installing dependency..."
apt-get update
echo " [*] Succesfully installed!"
echo " [ ] Adding config..."
if [ -d $HOME/.termux ]; then
mv $HOME/.termux $HOME/.termux.bak
fi
if [ ! -d $HOME/.termux ]; then
mkdir $HOME/.termux
fi
mv $DIR/.termux/font.ttf $HOME/.termux/font.ttf
mv $DIR/.termux/termux.properties $HOME/.termux/termux.properties
echo " [*] Succesfully Added!"
read -p "Which shell do you want to use (zsh / fish / bash)? " option
case $option in
zsh | z)
echo " [ ] Installing zsh..."
apt-get install -y zsh
echo " [*] Done."
echo " [ ] Cloning oh-my-zsh files..."
git clone https://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh --depth=1
echo " [*] Succesfully cloned!"
echo " [ ] Setting zsh..."
cp $HOME/.oh-my-zsh/templates/zshrc.zsh-template $HOME/.zshrc
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' $HOME/.zshrc
chsh -s zsh
echo " [*] Succesfully!"
;;
fish | f)
echo " [ ] Installing and set up fish..."
apt-get install -y fish
chsh -s fish
echo " [*] Done."
;;
*)
echo "You will continue to use bash."
;;
esac
echo " [ ] Getting storage permission and reload termux..."
termux-setup-storage
termux-reload-settings
echo " [*] Done!"