add termux shortcuts to repo

This commit is contained in:
KemoNine 2022-05-22 15:18:28 -04:00
parent 1deb53ac7a
commit 3c301c8076
6 changed files with 17 additions and 0 deletions

View file

@ -48,6 +48,12 @@ if grep -q "Android" <<< `uname -a`; then
rm ~/.termux/termux.properties rm ~/.termux/termux.properties
# must be copy to prevent error on termux startup # must be copy to prevent error on termux startup
cp $PATH_PREFIX/termux/termux.properties ~/.termux/termux.properties 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 # reload settings
termux-reload-settings termux-reload-settings
fi fi

3
shortcuts/backup_local.sh Executable file
View file

@ -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/

2
shortcuts/code.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
emacs --with-profile code

2
shortcuts/destiny.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
emacs ~/storage/shared/org/games_destiny.org

2
shortcuts/org-mode.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
emacs --with-profile org

2
shortcuts/update.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
pkg update && pkg upgrade