From bc0e688446f98ee92674ede8bf435558a5cdfb3c Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 22 May 2022 15:01:47 -0400 Subject: [PATCH] add termux config to the repo --- _setup.sh | 14 +++++++++++++- termux/termux.properties | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 termux/termux.properties diff --git a/_setup.sh b/_setup.sh index f7f0303..a483ab3 100755 --- a/_setup.sh +++ b/_setup.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash PATH_PREFIX=`pwd` @@ -40,6 +40,18 @@ if ! [ -d ~/.asdf ]; then cd $PATH_PREFIX fi +# termux tuning +if grep -q "Android" <<< `uname -a`; then + if ! [ -d ~/.termux ]; then + mkdir ~/.termux + fi + rm ~/.termux/termux.properties + # must be copy to prevent error on termux startup + cp $PATH_PREFIX/termux/termux.properties ~/.termux/termux.properties + # reload settings + termux-reload-settings +fi + echo "exa fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone" echo "copy restic.sh if desired/needed" echo "run tmux and do -I to install plugins and finish setup" diff --git a/termux/termux.properties b/termux/termux.properties new file mode 100644 index 0000000..0145615 --- /dev/null +++ b/termux/termux.properties @@ -0,0 +1 @@ +extra-keys = [ ['ESC','-','BACKSLASH','HOME','UP','END','PGUP','DEL'], ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN','DRAWER'] ]