自定义测试脚本
☁ ~ echo 'touch ~/test.txt' > test.sh
添加可执行权限
☁ ~ chmod 755 test.sh
设置脚本的打开方式

设置为以iterm
打开

设置开机自起
进入系统偏好设置->用户与群组->登陆项,将test.sh
添加到登陆项,并勾选前面的隐藏选项卡,重新启动即可

☁ ~ echo 'touch ~/test.txt' > test.sh
添加可执行权限
☁ ~ chmod 755 test.sh
设置为以iterm
打开
进入系统偏好设置->用户与群组->登陆项,将test.sh
添加到登陆项,并勾选前面的隐藏选项卡,重新启动即可
本文标题:mac设置自定义脚本开机自启
本文链接:https://www.haomeiwen.com/subject/feuzqqtx.html
网友评论