Flag option to open the browser when Hugo server

Is there an config option or flag to get the browser opening automatically at launch when hugo serve ?
something like hugo server -v --open and go directly to the url localhost:1313

alias foo='google-chrome http://localhost:1313/ && hugo server'
foo
1 Like

On macOS

open http://localhost:1313/ && hugo server

Make sure to run the server with the --navigateToChanged flag, too. When you open the browser, this will automagically show you the last page that was modified. Pretty useful to see what you’re working on without extra clicks.