Created
April 1, 2012 17:54
-
-
Save ezkl/2277376 to your computer and use it in GitHub Desktop.
Bash function to generate a new iTerm tab in the current directory
This file contains hidden or 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
function tab() { | |
osascript -e " | |
tell application \"iTerm\" | |
tell the first terminal | |
launch session \"Default Session\" | |
tell the last session | |
write text \"cd $(pwd)\" | |
end tell | |
end tell | |
end tell" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment