Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added tab helper to run command in new iTerm tab

  • Loading branch information...
commit 78b931341a208540536f2768f61bb36c2f59184d 1 parent 9cb8b4e
@vcamaral authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 scripts/utils.sh
View
13 scripts/utils.sh
@@ -49,4 +49,17 @@ github() {
#
alarm() {
echo "afplay /System/Library/Sounds/Basso.aiff && /usr/local/bin/growlnotify -t Alarm -s -d alarm -a /Applications/iCal.app -m '$2'" | at $1
+}
+
+tab() {
+ osascript 2>/dev/null <<EOF
+ tell application "iTerm"
+ tell the first terminal
+ launch session "Default"
+ tell the current session
+ write text "cd $PWD; $*"
+ end tell
+ end tell
+ end tell
+EOF
}
Please sign in to comment.
Something went wrong with that request. Please try again.