Last active
October 18, 2021 15:34
-
-
Save modille/e406e3de928730529e298cfee6b3c772 to your computer and use it in GitHub Desktop.
Install Ruby docset for every gem included by a bundle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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