Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
# open all the URLs under the "daily" folder on the
# Google Chrome bookmarks bar in a new window from the command line
# dependency: jq
jq '.roots.bookmark_bar.children[] | select(.name | contains("daily")) | .children[].url' \
< ~/Library/Application\ Support/Google/Chrome/Default/Bookmarks \
| xargs '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --new-window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment