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

前端 未结 13 2305
醉话见心
醉话见心 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:46

    Here's how it's done by bash_it:

    function tab() {
      osascript 2>/dev/null <

    After adding this to your .bash_profile, you'd use the tab command to open the current working directory in a new tab.

    See: https://github.com/revans/bash-it/blob/master/plugins/available/osx.plugin.bash#L3

提交回复
热议问题