d2 icon indicating copy to clipboard operation
d2 copied to clipboard

cli: Avoid opening browser when using `--watch`

Open DannyBen opened this issue 3 years ago • 1 comments

Is there a way to disable the browser opening when using --watch? It is an annoyance when running in headless linux.

DannyBen avatar Nov 23 '22 21:11 DannyBen

this should definitely be an option, ty, will work on it shortly

alixander avatar Nov 23 '22 21:11 alixander

Let's make BROWSER=0 and BROWSER=false disable.

nhooyr avatar Nov 28 '22 22:11 nhooyr

And then I guess BROWSER=1 and BROWSER=true should detect the browser automatically like BROWSER=.

nhooyr avatar Nov 28 '22 23:11 nhooyr