--- layout: post title: "终极恢复终端" date: 2026-06-14 13:58:49 +08:00 categories: 拾光 随笔 时光存档 tags: 风正扬 --- 备份时 cd ~/gitdemo mkdir -p config/termux cat > config/termux/restore.sh <<'EOF' #!/data/data/com.termux/files/usr/bin/bash pkg update -y pkg install -y git zsh curl if [ ! -d "$HOME/.config/tmoe-zsh" ]; then bash -c "$(curl -L https://gitee.com/mo2/zsh/raw/master/zsh.sh)" else echo "tmoe-zsh 已存在,跳过安装。" fi cp ~/.myfuncs.sh ~/ cp ~/.bashrc ~/ cp ~/.zshrc ~/ cp ~/.profile ~/ source ~/.bashrc echo "✅✅✅ Termux 环境、主题及配置已全部恢复完成!" EOF chmod +x config/termux/restore.sh git add config/termux git commit -m "更新 restore.sh:集成依赖与主题自动安装" git push gitdemo master —————————————————————————————————————————————————————— 恢复时 pkg update -y pkg install git -y git clone https://github.com/sxgpyjg/sxgpyjg.github.io.git gitdemo cd gitdemo ./config/termux/restore.sh