DEV Community

Jonas Brømsø
Jonas Brømsø

Posted on

3 1

TIL: Query Dash.app from the CLI

Dash the documentation browser for MacOS and iOS is a nifty tool.

It can integrate with a lot of tools like editors etc. but you can also integrate with the CLI.

This example is for Bash, where I have added the following function to my .bash_profile

function dash {
    open "dash://$1"
}
Enter fullscreen mode Exit fullscreen mode

This lets me do:

$ dash «query»
Enter fullscreen mode Exit fullscreen mode

Which open the Dash application and lists the results.

$ dash chmod
Enter fullscreen mode Exit fullscreen mode

Lists all pages mentioning chmod

Ruby result for chmod

You can even use the configurable search profiles to limit your results set, like so:

$ dash ruby:chmod
Enter fullscreen mode Exit fullscreen mode

Lists all the Ruby pages mentioning chmod, well pages a part of the Ruby search profile, but you get the picture.

Ruby result for chmod

References

This TIL was curated, seasoned and hand-picked tonight from my TIL collection.

Let me know if you have problems or improvements

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs