1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Specify App When Opening From Command Line as a mac til

This commit is contained in:
jbranchaud
2019-07-09 11:28:57 -05:00
parent 59408a0678
commit 1da64f9379
2 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# Specify App When Opening From Command Line
When you `open` files from the command line
```bash
$ open README.md
```
the default app for that filetype will be used. For me, `README.md` will be
opened in VS Code.
If you have a different app in mind, you can specify it using the `-a` flag:
```bash
$ open README.md -a Notes
```
This will open `README.md` in Mac's Notes app.
See `man open` for more details.