my personal dotfiles managed by dotbot, zinit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
962 B

6 years ago
#!/data/data/com.termux/files/usr/bin/bash
5 years ago
echo -e "Installing dependencies ..."
6 years ago
# https://github.com/4679/oh-my-termux
pkg install -y libcurl wget curl openssh vim git zsh unrar unzip less tree htop tsu neofetch
5 years ago
echo -e "Successfully Installed"
6 years ago
if [ -d "$HOME/.termux" ]; then
mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%Y.%m.%d-%H:%M:%S)"
6 years ago
fi
5 years ago
if [ ! -d $HOME/.termux ]; then
mkdir $HOME/.termux
fi
ln -s "$HOME/dotfiles/termux/.termux" "$HOME/.termux"
6 years ago
git clone https://github.com/robbyrussell/oh-my-zsh $HOME/.oh-my-zsh --depth 1
6 years ago
cp $HOME/.oh-my-zsh/templates/zshrc.zsh-template $HOME/.zshrc
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' $HOME/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"
6 years ago
chsh -s zsh
termux-setup-storage
5 years ago
termux-reload-settings
6 years ago
5 years ago
echo "Done! "
6 years ago
exit