Quick new tab from iTerm


/ Published in: Bash
Save to your folder(s)

Place this in your ~/.bash_profile then type tab in your terminal window to see some magic happen.


Copy this code and paste it in your HTML
  1. tab() # new tab from current dir
  2. {
  3. osascript -e "
  4. tell application \"iTerm\"
  5. tell the first terminal
  6. launch session \"Default Session\"
  7. tell the last session
  8. write text \"cd $(pwd)\"
  9. end tell
  10. end tell
  11. end tell"
  12. }

URL: http://macournoyer.wordpress.com/2007/06/04/quick-new-tab-from-iterm/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.