From b7e1a6c7501f6537f3f9ec28180b3f65555fed7b Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sat, 15 Jun 2019 20:13:50 +0800 Subject: [PATCH] Add termux --- termux_init.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 termux_init.sh diff --git a/termux_init.sh b/termux_init.sh new file mode 100644 index 0000000..9e58f27 --- /dev/null +++ b/termux_init.sh @@ -0,0 +1,23 @@ +#!/data/data/com.termux/files/usr/bin/bash + +# https://github.com/4679/oh-my-termux +pkg install -y libcurl wget curl openssh vim git zsh unrar unzip less +clear + +if [ -d "$HOME/.termux" ]; then + mv $HOME/.termux $HOME/.termux.bak +fi + +curl -fsLo $HOME/.termux/colors.properties --create-dirs https://cdn.rawgit.com/4679/oh-my-termux/master/.termux/colors.properties +curl -fsLo $HOME/.termux/font.ttf --create-dirs https://cdn.rawgit.com/4679/oh-my-termux/master/.termux/font.ttf + +git clone git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh --depth 1 +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 + +termux-setup-storage + +echo "Done! Please restart Termux." + +exit