https://rud.is/b/2014/01/10/change-the-default-shell-action-in-rstudio-for-os-x/
Change The Default "Shell..." Action In RStudio for OS X