Created
June 6, 2016 19:32
-
-
Save marcusshepp/3d04add6bac04da9c9ad5b3856dd3888 to your computer and use it in GitHub Desktop.
opening files from terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -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