Browse Source

add termux shortcuts to repo

main
KemoNine 1 month ago
parent
commit
3c301c8076
  1. 6
      _setup.sh
  2. 3
      shortcuts/backup_local.sh
  3. 2
      shortcuts/code.sh
  4. 2
      shortcuts/destiny.sh
  5. 2
      shortcuts/org-mode.sh
  6. 2
      shortcuts/update.sh

6
_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

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

2
shortcuts/code.sh

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

2
shortcuts/destiny.sh

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

2
shortcuts/org-mode.sh

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

2
shortcuts/update.sh

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