New Tab in Terminal

  • Download Gist
1 2 3 4 5 6 7
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.