Skip to content

Instantly share code, notes, and snippets.

@botanicus
Created June 18, 2014 08:09
Show Gist options
  • Select an option

  • Save botanicus/f492b2bf594e43a44871 to your computer and use it in GitHub Desktop.

Select an option

Save botanicus/f492b2bf594e43a44871 to your computer and use it in GitHub Desktop.
tell application "AppleScript Editor"
go fuck yourself
end tell
@lukaskonarovsky
Copy link
Copy Markdown

Only useful piece of this:

# Usage: set second profile called "Remote" in Terminal.app and add this to your .bashrc

function tabc {
  NAME=$1
  osascript -e "tell application \"Terminal\" to set current settings of selected tab of front window to settings set \"$NAME\""
}

function ssh {
  tabc "Remote"
  /usr/bin/ssh "$@"
  tabc "Basic"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment