Bring up chrome code for mac

broken image
broken image

Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome -user-data-dir='/tmp/james_bonds_browser'Īll your secret browsing will be saved separately, so it won't share any history, preferences, or passwords with your normal browser, somewhat like Incongnito browsing. To have a separate and new Chrome, run it with the –user-data-dir option, e.g. You can have a completely separate Chrome app running, which you can then use command-tab to switch between (like in Windows) instead of the less stable command-` to switch between Chrome windows. Open a new instance of Chrome as a new user You could even run it with a url as an argument to have that page opened by Chrome in a new tab if Chrome is already open. You can copy and paste that to Terminal and it should open Chrome without any special options, or just open a new Chrome window if you already have Chrome open. This is the absolute location of Chrome on Mac OS X: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome. And by running it from the command line you can configure Chrome with a number of options, there are several hundred possible flags which you can start Chrome with.įirst of all, just to start/open Chrome from the command line instead of the Dock (or Spotlight) all you need is the path to the Chrome app binary. Chrome can be opened from the command line.