mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
21 lines
415 B
Markdown
21 lines
415 B
Markdown
# 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.
|