I'm generating markdown previews from the commandline (to a local file in /tmp) and would like to update the preview tab instead of creating a new one.

Firefox has a new tab option but nothing on reusing an existing one

 --new-tab <url>    Open <url> in a new tab.

I couldn't find anything from Chromium either.

  • If the file in /tmp has a constant name, you can refresh the window using the answers in unix.stackexchange.com/a/240497/49439 Oct 9, 2020 at 11:31
  • @MarkPlotnick Thanks - if there's nothing builtin that is certainly an interesting workaround!
    – laktak
    Oct 9, 2020 at 12:10

1 Answer 1


I've settled on using browser-sync.

It's a web server that refreshes the browser whenever a local file changes.

The only issue is a race condition when the output is not ready in time (at least for now).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.