LoginSignup
14
12

More than 5 years have passed since last update.

openコマンドでアプリケーションを指定(したらすごい!革命だ!)

Last updated at Posted at 2013-08-21

Mac OS Xの中でもトップクラスの便利コマンド、 open(1) 。実はどのアプリケーションで開くかを指定できる。

Options: 
      -a                Opens with the specified application.

例えば、テキストファイルを開くときに確実にCotEditorを指定できたりする。なので下のようなエイリアスを作ったら、

alias cot="open -a CotEditor"
cot hoge.md

革命的に便利!!!!!!

ちなみに

open -a C<Tab>

を押したらちゃんとアプリケーション名が自動補完される(当方zshユーザ)

14
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
12