Open new Terminal Tab from command line (Mac OS X)

前端 未结 13 2215
醉话见心
醉话见心 2020-12-02 04:19

Is it possible to open a new tab in Mac OS X\'s terminal from the command line in a currently opened tab?

I know that the keyboard shortcut to open a new tab in Term

相关标签:
13条回答
  • 2020-12-02 04:55

    I know this is an old post, but this worked for me:

    open -a Terminal "`pwd`"
    

    To run a command as requested below takes some jiggery:

    echo /sbin/ping 8.8.8.8 > /tmp/tmp.sh;chmod a+x /tmp/tmp.sh;open -a Terminal /tmp/tmp.sh
    
    0 讨论(0)
提交回复
热议问题