add termux shortcuts to repo
This commit is contained in:
parent
1deb53ac7a
commit
3c301c8076
|
@ -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
Executable file
3
shortcuts/backup_local.sh
Executable 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
2
shortcuts/code.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
emacs --with-profile code
|
2
shortcuts/destiny.sh
Executable file
2
shortcuts/destiny.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
emacs ~/storage/shared/org/games_destiny.org
|
2
shortcuts/org-mode.sh
Executable file
2
shortcuts/org-mode.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
emacs --with-profile org
|
2
shortcuts/update.sh
Executable file
2
shortcuts/update.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
pkg update && pkg upgrade
|
Loading…
Reference in a new issue