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