initial termux emacs daemon setup
This commit is contained in:
parent
a724f54fa3
commit
e3496c43b6
|
@ -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 <prefix>-I to install plugins and finish setup"
|
||||
|
|
2
boot/99-emacs-code.sh
Executable file
2
boot/99-emacs-code.sh
Executable file
|
@ -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'
|
2
boot/99-emacs-org.sh
Executable file
2
boot/99-emacs-org.sh
Executable file
|
@ -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'
|
2
zshrc
2
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)
|
||||
|
|
Loading…
Reference in a new issue