Skip to content

Instantly share code, notes, and snippets.

@modille
Last active October 18, 2021 15:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modille/e406e3de928730529e298cfee6b3c772 to your computer and use it in GitHub Desktop.
Save modille/e406e3de928730529e298cfee6b3c772 to your computer and use it in GitHub Desktop.
Install Ruby docset for every gem included by a bundle
#!/usr/bin/env bash
# Adapted from:
# https://twitter.com/kapeli/status/649852908025040896
bundle list \
| awk -F'[ ()]+' '$2 == "*" {system("sleep 3"); print "dash-install://repo_name=Ruby%20Docsets&entry_name=" $3 "&version=" $4;}' \
| xargs open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment