title: new tab in iTerm2
body: <p>Im using Iterm2 version Build 3.0.4
  I want to create alias to open new tab from the command line (in bash)
  I tried this code:</p>
  
  <pre><code>    function tab () {
      osascript &amp;&gt;/dev/null &lt;&lt;EOF
  activate application "iTerm"
      tell application "System Events" to keystroke "t" using command down
      tell application "iTerm" to tell session -1 of current terminal to write text "pwd"
  EOF
  }
  </code></pre>
  
  <p>but it isn't working. Can anyone solve the problem with this version (or newer version)?</p>