Skip to content

Instantly share code, notes, and snippets.

View dfurber's full-sized avatar

David Furber dfurber

  • TrueCar Inc
  • Ithaca, NY
View GitHub Profile
@sbleon
sbleon / term
Last active May 7, 2019 14:41
Start working on a Rails project
#!/bin/sh
#
# Open a new Mac OS X terminal window or tab in the current or another
# directory and optionally run a command in the new window or tab.
#
# - Without any arguments, the new terminal window opens in
# the current directory, i.e. the executed command is "cd $PWD".
# - If the first argument is a directory, the new terminal will "cd" into
# that directory before executing the remaining arguments as command.
# - The optional "-t" flag executes the command in a new tab