Last active
December 18, 2020 16:27
-
-
Save noahcoad/0496d41aa4fb3b0e070e5a2a8cf6f45a to your computer and use it in GitHub Desktop.
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
#!/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