Create a gist now

Instantly share code, notes, and snippets.

New Tab in Terminal
Create a new executable file in “/usr/local/bin” named “nt” with the following content:
osascript -e 'tell application "Terminal"' \
-e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' \
-e "do script with command \"cd `pwd`;clear\" in selected tab of the front window" \
-e 'end tell' &> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment