forked from alexs77/termux-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·29 lines (19 loc) · 719 Bytes
/
setup.sh
File metadata and controls
executable file
·29 lines (19 loc) · 719 Bytes
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
#!/bin/sh
echo "This script sets up the Termux App."
masterzip_url="https://github.com/alexs77/termux-config/archive/master.zip"
masterzip_file="$HOME/tmp/termux-config-master.zip"
masterzip_dir="$HOME/tmp/termux-config"
master_dir="$masterzip_dir/termux-config-master"
package_file="$master_dir/data/packages.txt"
mkdir -p "$HOME/tmp" "$HOME/bin"
[ -f "$masterzip_file" ] || wget -O "$masterzip_file" "$masterzip_url"
rm -rf "$masterzip_dir"
mkdir -p "$masterzip_dir"
busybox unzip -d "$masterzip_dir" "$masterzip_file"
packages="`busybox sed 's, -.*,,' "$package_file"`"
apt install -y $packages
cp -rp "$master_dir/data/HOME/." "$HOME"
rm -f "$HOME/.vimrc"
ln -s ".vim/.vimrc" "$HOME/.vimrc"
exit $?
# EOF