xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/save

14 lines
296 B
Plaintext
Raw Normal View History

#!/bin/sh
source /etc/profile.sh
javascript='
2024-10-23 18:51:56 +02:00
const isoterminal = document.querySelector("[isoterminal]").components.isoterminal.term
isoterminal.save()
return "[OK] xrsh state saved\n"
'
echo "[OK] triggering ~/hook.d/save/* scripts"
hook save
echo "[..] please wait.."
js "$javascript"