Skip to content

开机启动

开机启动用于在 ZeroTermux 启动时自动执行命令。

入口

text
配置终端 > 开机启动

相关文件

源码中启动命令相关路径包括:

路径说明
$PREFIX/usr/etc/bash.bashrcShell 启动配置
~/.xinhao_history/start_command.shZeroTermux 启动脚本

使用建议

  • 先在终端手动测试命令。
  • 自动启动脚本中尽量使用绝对路径。
  • 不要把会长时间阻塞的命令直接放在启动脚本里。
  • 如果启动后进入不了终端,可尝试用故障安全会话排查。

Released under the MIT License.