Skip to content

Instantly share code, notes, and snippets.

@marcusshepp
Created June 6, 2016 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcusshepp/3d04add6bac04da9c9ad5b3856dd3888 to your computer and use it in GitHub Desktop.
Save marcusshepp/3d04add6bac04da9c9ad5b3856dd3888 to your computer and use it in GitHub Desktop.
opening files from terminal
# -a lets you pass an application name to open with
open -a TextEdit ~/path/to/foo.txt
# -e will open the file in TextEdit
open -e ~/path/to/foo.txt
# -t opens the file with the default text editor
open -t ~/path/to/foo.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment