Created
June 18, 2015 09:00
-
-
Save HaNdTriX/8cebc0be06f41077cd7a to your computer and use it in GitHub Desktop.
Opens a new Terminal Tab and executes command
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
function execInNewTerminalTab { | |
osascript -e 'tell application "Terminal" | |
activate | |
tell application "System Events" to keystroke "t" using command down | |
do script "'"$1"'" in window 1 | |
end tell' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage