Skip to content

Instantly share code, notes, and snippets.

@epall
Created December 13, 2008 21:57
Show Gist options
  • Save epall/35556 to your computer and use it in GitHub Desktop.
Save epall/35556 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# A simple script to open a new tab in Terminal in the current directory
# Author: Eric Allen
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' > /dev/null
osascript -e "tell application \"Terminal\" to do script \"cd $PWD && clear\" in window 1" > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment