Skip to content

Instantly share code, notes, and snippets.

@helmutgranda
Created August 2, 2011 15:43
Show Gist options
  • Save helmutgranda/1120474 to your computer and use it in GitHub Desktop.
Save helmutgranda/1120474 to your computer and use it in GitHub Desktop.
Open a file with specific program
# use the following to open a file with a specific program
function functionName()
{
open -a program $1
}
#usage
$ functionName file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment