Browse Source

Adjust termux using dotbot

pull/6/head
Ein Verne 3 years ago
parent
commit
c8a4ef53dc
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 5
      Makefile
  2. 11
      README.md
  3. 19
      config/termux.conf.yml
  4. 0
      termux/.termux/colors.properties
  5. 0
      termux/.termux/font.ttf
  6. 1
      termux/.termux/termux.properties
  7. 9
      termux/setup.sh
  8. 1
      termux/termux.properties

5
Makefile

@ -11,6 +11,11 @@ _bootstrap:
bootstrap: _prepare dotfiles _bootstrap ## Bootstrap new machine
termux: _prepare dotfiles termux ## Bootstrap new termux
termux:
@./install -c config/termux.conf.yml
dotfiles: ## Update dotfiles
@./install

11
README.md

@ -12,6 +12,17 @@ Set up using dotbot:
# under macOS
make macos
## Termux setup
Install dependency first:
pkg install make python vim git
then:
git clone [email protected]:einverne/dotfiles.git
cd dotfiles
make termux
## Overview
- using [dotbot](https://github.com/anishathalye/dotbot/) to manage dotfiles, [read more](https://blog.einverne.info/post/2020/08/use-dotbot-dotfiles-management.html)

19
config/termux.conf.yml

@ -0,0 +1,19 @@
- shell:
- description: Clone zinit
quiet: true
command: |
if cd ~/.zinit/bin;
then git pull;
else git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin; fi
- termux-setup-storage
- termux-reload-settings
- description: backup .termux
command: |
mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%Y.%m.%d-%H:%M:%S)"
- description: install tools
command: |
pkg install -y libcurl wget curl openssh vim git zsh unrar unzip less tree htop tsu neofetch
- link:
~/.termux:
path: termux/.termux

0
termux/colors.properties → termux/.termux/colors.properties

0
termux/font.ttf → termux/.termux/font.ttf

1
termux/.termux/termux.properties

@ -0,0 +1 @@
extra-keys = [['ESC','/','|','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]

9
termux/setup.sh

@ -2,21 +2,18 @@
echo -e "Installing dependencies ..."
# https://github.com/4679/oh-my-termux
pkg install -y libcurl wget curl openssh vim git zsh unrar unzip less tree htop
pkg install -y tsu neofetch
pkg install -y libcurl wget curl openssh vim git zsh unrar unzip less tree htop tsu neofetch
echo -e "Successfully Installed"
if [ -d "$HOME/.termux" ]; then
mv $HOME/.termux $HOME/.termux.bak
mv "$HOME/.termux" "$HOME/.termux.bak.$(date +%Y.%m.%d-%H:%M:%S)"
fi
if [ ! -d $HOME/.termux ]; then
mkdir $HOME/.termux
fi
curl -fsLo $HOME/.termux/colors.properties --create-dirs https://github.com/einverne/dotfiles/raw/master/termux/colors.properties
curl -fsLo $HOME/.termux/termux.properties --create-dirs https://github.com/einverne/dotfiles/raw/master/termux/termux.properties
curl -fsLo $HOME/.termux/font.ttf --create-dirs https://github.com/einverne/dotfiles/raw/master/termux/font.ttf
ln -s "$HOME/dotfiles/termux/.termux" "$HOME/.termux"
git clone https://github.com/robbyrussell/oh-my-zsh $HOME/.oh-my-zsh --depth 1
cp $HOME/.oh-my-zsh/templates/zshrc.zsh-template $HOME/.zshrc

1
termux/termux.properties

@ -1 +0,0 @@
extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]
Loading…
Cancel
Save