美文网首页
Mac打开一个Terminal窗口

Mac打开一个Terminal窗口

作者: 三米板 | 来源:发表于2020-03-04 10:53 被阅读0次

    我们常有这样的需求,我们需要直接打开项目的根目录,执行一些命令操作,那么有没有一个方便的形式呢?有的,就是把打开终端窗口和定位的操作,存储下来,如下

    osascript -e 'tell application "Terminal" to do script " sh ~/Desktop/shellTest/open.sh" '
    

    相关文章

      网友评论

          本文标题:Mac打开一个Terminal窗口

          本文链接:https://www.haomeiwen.com/subject/boxmlhtx.html