From 3c301c8076fdd2bf6e8cf1024d5ea12d565655e0 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 22 May 2022 15:18:28 -0400 Subject: [PATCH] add termux shortcuts to repo --- _setup.sh | 6 ++++++ shortcuts/backup_local.sh | 3 +++ shortcuts/code.sh | 2 ++ shortcuts/destiny.sh | 2 ++ shortcuts/org-mode.sh | 2 ++ shortcuts/update.sh | 2 ++ 6 files changed, 17 insertions(+) create mode 100755 shortcuts/backup_local.sh create mode 100755 shortcuts/code.sh create mode 100755 shortcuts/destiny.sh create mode 100755 shortcuts/org-mode.sh create mode 100755 shortcuts/update.sh diff --git a/_setup.sh b/_setup.sh index a483ab3..bd7b7c2 100755 --- a/_setup.sh +++ b/_setup.sh @@ -48,6 +48,12 @@ if grep -q "Android" <<< `uname -a`; then rm ~/.termux/termux.properties # must be copy to prevent error on termux startup cp $PATH_PREFIX/termux/termux.properties ~/.termux/termux.properties + # shortcuts + if ! [ -d ~/.shortcuts ]; then + mkdir ~/.shortcuts + fi + # cannot use symlinks -- termux forces full path execution from android launcher shortcuts + cp $PATH_PREFIX/shortcuts/* ~/.shortcuts # reload settings termux-reload-settings fi diff --git a/shortcuts/backup_local.sh b/shortcuts/backup_local.sh new file mode 100755 index 0000000..7e9ae7c --- /dev/null +++ b/shortcuts/backup_local.sh @@ -0,0 +1,3 @@ +#!/bin/bash +rsync -aPr --delete --no-links --exclude=.cache/ --exclude=src/ --exclude=storage/ $HOME/ $HOME/storage/shared/termux/ +#rsync -aPr --no-links $PREFIX/ $HOME/storage/shared/termux/usr/ diff --git a/shortcuts/code.sh b/shortcuts/code.sh new file mode 100755 index 0000000..aa56134 --- /dev/null +++ b/shortcuts/code.sh @@ -0,0 +1,2 @@ +#!/bin/bash +emacs --with-profile code diff --git a/shortcuts/destiny.sh b/shortcuts/destiny.sh new file mode 100755 index 0000000..7341385 --- /dev/null +++ b/shortcuts/destiny.sh @@ -0,0 +1,2 @@ +#!/bin/sh +emacs ~/storage/shared/org/games_destiny.org diff --git a/shortcuts/org-mode.sh b/shortcuts/org-mode.sh new file mode 100755 index 0000000..eb99562 --- /dev/null +++ b/shortcuts/org-mode.sh @@ -0,0 +1,2 @@ +#!/bin/bash +emacs --with-profile org diff --git a/shortcuts/update.sh b/shortcuts/update.sh new file mode 100755 index 0000000..4a113db --- /dev/null +++ b/shortcuts/update.sh @@ -0,0 +1,2 @@ +#!/bin/bash +pkg update && pkg upgrade