Skip to content

Instantly share code, notes, and snippets.

@hackugyo
Last active December 15, 2015 02:46
Show Gist options
  • Save hackugyo/e7ef610b0213eca8b2b8 to your computer and use it in GitHub Desktop.
Save hackugyo/e7ef610b0213eca8b2b8 to your computer and use it in GitHub Desktop.
Firefoxのセッション(`~/Library/Application Support/Firefox/Profiles/*/sessions/backup.session`)からURLを抜き出して開く。FirefoxからChromeに移行するときとか、Firefoxがどうしてもセッションをリストしなくなったときとか。
$ cat sessions/backup.session | sed 1,4d | jq '.windows[0].tabs[].entries[0] |select(.url | startswith("http")) | .url' | xargs open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment