Open id8547854 opened 3 months ago
THIS PLUGIN - TERMUX NO WORK ( NOT SYSTEMD )
THIS - TERMUX WORK.
Needed only https://github.com/tmux-plugins/tmux-resurrect
Edit this script. /data/data/com.termux/files/home/clone/path/scripts/save.sh ( delete func main, paste text end script - save_all )
Edit this script. /data/data/com.termux/files/home/clone/path/scripts/restore.sh ( in func main - delete string start_spinner "Restoring..." "Tmux restore complete!" and display_message "Tmux restore complete!"
crontab ( save all tmux session background every 10 min ) /10 * tmux run-shell -b "/data/data/com.termux/files/home/clone/path/scripts/save.sh &"
Restore session. '/data/data/com.termux/files/usr/bin/tmux new-session -d && tmux run-shell -b "/data/data/com.termux/files/home/clone/path/scripts/restore.sh &"'
THIS PLUGIN - TERMUX NO WORK ( NOT SYSTEMD )
THIS - TERMUX WORK.
Needed only https://github.com/tmux-plugins/tmux-resurrect
Edit this script. /data/data/com.termux/files/home/clone/path/scripts/save.sh ( delete func main, paste text end script - save_all )
Edit this script. /data/data/com.termux/files/home/clone/path/scripts/restore.sh ( in func main - delete string start_spinner "Restoring..." "Tmux restore complete!" and display_message "Tmux restore complete!"
crontab ( save all tmux session background every 10 min ) /10 * tmux run-shell -b "/data/data/com.termux/files/home/clone/path/scripts/save.sh &"
Restore session. '/data/data/com.termux/files/usr/bin/tmux new-session -d && tmux run-shell -b "/data/data/com.termux/files/home/clone/path/scripts/restore.sh &"'