LoginSignup
4

More than 5 years have passed since last update.

TerminalからDashを開く

Last updated at Posted at 2016-09-21

Dashとは

Dash for macOS - API Documentation Browser, Snippet Manager - Kapeli : https://kapeli.com/dash

TerminalからDashを開くコマンドは

$ open dash://keyword

例えば、python3のprint関数を参照するには以下を実行する

$ open dash://python3:print

open dash:// をいちいち入力するのは面倒なので関数を定義して実行できるようにする

bashの場合

~/.bash_profile
dash () {
    open dash://$1
}

zshの場合

~/.zshenv
alias dash='(){ open dash://$1 }'

以下の様に使える

$ dash python3:print

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
4