diff --git a/_setup.sh b/_setup.sh index bd60fab..4af80e1 100755 --- a/_setup.sh +++ b/_setup.sh @@ -52,12 +52,18 @@ if grep -q "Android" <<< `uname -a`; then if ! [ -d ~/.shortcuts ]; then mkdir ~/.shortcuts fi + # boot scripts + if ! [ -d ~/.termux/boot ]; then + mkdir ~/.termux/boot + fi # cannot use symlinks -- termux forces full path execution from android launcher shortcuts - cp $PATH_PREFIX/shortcuts/* ~/.shortcuts + cp $PATH_PREFIX/shortcuts/* ~/.shortcuts/ + cp $PATH_PREFIX/boot/* ~/.termux/boot/ # reload settings termux-reload-settings fi +echo "ensure Termux:Boot android helper app is installed from f-droid" echo "exa fd bat tmux htop nano most ripgrep emacs zsh lf restic rclone glow" echo "copy restic.sh if desired/needed" echo "run tmux and do -I to install plugins and finish setup" diff --git a/boot/99-emacs-code.sh b/boot/99-emacs-code.sh new file mode 100755 index 0000000..67301b3 --- /dev/null +++ b/boot/99-emacs-code.sh @@ -0,0 +1,2 @@ +#!/data/data/com.termux/files/usr/bin/sh +/data/data/com.termux/files/usr/bin/tmux new-session -d -s emacs-code '/data/data/com.termux/files/usr/bin/emacs --with-profile code' diff --git a/boot/99-emacs-org.sh b/boot/99-emacs-org.sh new file mode 100755 index 0000000..9e6c2c0 --- /dev/null +++ b/boot/99-emacs-org.sh @@ -0,0 +1,2 @@ +#!/data/data/com.termux/files/usr/bin/sh +/data/data/com.termux/files/usr/bin/tmux new-session -d -s emacs-org '/data/data/com.termux/files/usr/bin/emacs --with-profile org' diff --git a/zshrc b/zshrc index 651add6..49be380 100644 --- a/zshrc +++ b/zshrc @@ -85,6 +85,8 @@ alias ls="exa" if grep -q "Android" <<< `uname -a`; then alias proot-distro-keeb-root="proot-distro login keeb" alias proot-distro-keeb="proot-distro login --user keeb --termux-home keeb -- /bin/bash" + alias emacs="echo 'daemon mode -- use em [profile] instead'" + alias em="/data/data/com.termux/files/usr/bin/emacsclient -t -a '' -s " fi # dont allow mosh prediction (override in zshrc.local)