tmux-plugins / tmux-continuum

Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
MIT License
3.31k stars 149 forks source link

TERMUX FIX #144

Open id8547854 opened 3 months ago

id8547854 commented 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 &"'