Skip to content

Instantly share code, notes, and snippets.

@noahcoad
Last active December 18, 2020 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahcoad/0496d41aa4fb3b0e070e5a2a8cf6f45a to your computer and use it in GitHub Desktop.
Save noahcoad/0496d41aa4fb3b0e070e5a2a8cf6f45a to your computer and use it in GitHub Desktop.
#!/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