diff --git a/plugins/dash/README.md b/plugins/dash/README.md new file mode 100644 index 00000000..52f9689d --- /dev/null +++ b/plugins/dash/README.md @@ -0,0 +1,14 @@ +## dash + +**Maintainer:** [@MattLewin](https://github.com/MattLewin) + +This plugin supplies an easy way to query Dash from the command-line + +### Usage + +$ dash *\* (Ex.: `dash bash` ) + +$ dash *\:\* (Ex.: `dash ios:UITableView` ) + +Note that ** is the keyword associated with the docset, as shown on the Docsets preference pane of Dash preferences. + diff --git a/plugins/dash/dash.plugin.zsh b/plugins/dash/dash.plugin.zsh new file mode 100644 index 00000000..7e6f7f69 --- /dev/null +++ b/plugins/dash/dash.plugin.zsh @@ -0,0 +1,5 @@ +# Send everything on the command line to Dash, without having to +# type the whole 'open "dash://" business +function dash() { + open "dash://$1" +}