-
Notifications
You must be signed in to change notification settings - Fork 1
/
install-dependencies-android-termux.sh
86 lines (68 loc) · 1.68 KB
/
install-dependencies-android-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
touch ~/.bashrc
echo '''
# chroot to set up /tmp /etc and other fds for linux
termux-chroot
''' >> ~/.bashrc
export is_os_darwin_mac='0'
export is_os_window='0'
export is_os_wsl='0'
export is_os_ubuntu='0'
export is_os_chromeos='0'
export is_os_mingw64='0'
export is_os_android_termux='1'
echo """
export is_os_darwin_mac='0'
export is_os_window='0'
export is_os_wsl='0'
export is_os_ubuntu='0'
export is_os_chromeos='0'
export is_os_mingw64='0'
export is_os_android_termux='1'
""" > ~/.bash_syle_os
pkg install -y proot # needed for android termux fhd fixes
pkg install -y nodejs
pkg install -y fzf
pkg install -y vim
pkg install -y git
pkg install -y tig
pkg install -y python
pkg install -y bat
pkg install -y curl
pkg install -y git
pkg install -y tmux
# termux dracula theme
mkdir ~/.termux
echo '''
background: #282A36
foreground: #F8F8F2
color0: #000000
color8: #4D4D4D
color1: #FF5555
color9: #FF6E67
color2: #50FA7B
color10: #5AF78E
color3: #F1FA8C
color11: #F4F99D
color4: #BD93F9
color12: #CAA9FA
color5: #FF79C6
color13: #FF92D0
color6: #8BE9FD
color14: #9AEDFE
color7: #BFBFBF
color15: #E6E6E6
''' > ~/.termux/colors.properties
# termux config
echo '''
# Send the Escape key.
back-key=escape
# black theme
use-black-ui = true
''' > ~/.termux/termux.properties
pkg update -y
pkg upgrade -y
pkg autoclean -y
source ~/.bashrc
# use different font
curl https://github.com/synle/bashrc/raw/master/fonts/FiraCode-Regular.ttf -o ~/.termux/font.ttf
. /dev/stdin <<< "$(curl -s https://raw.githubusercontent.com/synle/bashrc/master/setup-lightweight.sh?$(date +%s))"