1. 创建sh脚本文件
#!/bin/bash
# chfs 文件服务器osascript -e 'tell application "Terminal" to do script "cd ~/service/chfs; ./chfs -file ./config.ini"'
# ddns-go 动态域名解析osascript -e 'tell application "Terminal" to do script "ddns-go"'
# frp 内网穿透osascript -e 'tell application "Terminal" to do script "cd ~/service/frp; ./frps -c ./frps.toml"'
# adb 安卓调试桥osascript -e 'tell application "Terminal" to do script "adb start-server; adb connect 192.168.2.86:5555; scrcpy -s 192.168.2.86:5555 -w -S --window-width=640"'osascript -e 'tell application "Terminal" to do script "cd /Users/macm4/code/DNF"'
2. 给权限:
chmod +x /path/to/your/startup.sh
3. 打开系统自带的脚本编辑器
do shell script "/path/to/your/startup.sh"