6 ms·
It seems odd to have open /Applications/Safari.app/ as an example, when open -a safari does the same thing.
by RazerM 12y ago
It seems odd to have
open /Applications/Safari.app/
as an example, when
open -a safari
does the same thing.
- kranner 12y agoExcept that the first one is supported by TAB-completion.
- cobbal 12y agoWith the right zsh plugin, either of them will tab complete properly. (I think "osx" from oh-my-zsh is the one that does it on mine) Edit: looks like this is actually built into zsh. Slightly surprised, but just goes to show I know almost nothing about the shell I use every day.
- kranner 12y agoYes but I use the default bash, as do probably most OS X users.
- ch4s3 12y agoCheck out Alfred[1] it supports tab completion. [1]http://www.alfredapp.com/ http://www.alfredapp.com/
- lastofus 12y agoIt's hard to beat cmd+space safari
- interpol_p 12y agoAgree, but it's actually more like: cmd+space sa <return> For most people. Because it seems to prioritise based on frequency of past selection.
- fphilipe 12y agoThe -a flag is also great to open a file in a specific app, e.g. `open -a Safari logo.svg` or `open -a Marked README.md`.