Last active
December 14, 2015 11:39
-
-
Save DavidBarry/5080817 to your computer and use it in GitHub Desktop.
A simple ruby script to create a new terminal window in the current directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
exec "osascript -e 'tell application \"terminal\"' -e \"do script \\\"cd #{Dir.pwd}\\\"\" -e 'end tell'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For convenience I've aliased this script to
neww
Thanks to Luther Blissett for providing the AppleScript in this Stack Overflow answer to make this work.