I’ve been using ohmyzsh with the powerlevel10k theme to enhance my terminal experience, as I find myself spending more time on it while working on a few projects. A screeshot of this “enhanced” terminal is shown below:

I was wondering if I could get the terminal within RStudio to use the same theme. Turns out that can be done, by following the steps below (Note that these steps are applicable to RStudio version 2022.12.0+353 “Elsbeth Geranium” Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for macOS. These steps also assume that you’ve already installed ohmyzsh and the powerlevel10k theme. If not, please follow the instructions here first):
- Go to “Tools > Global Options…”, and choose “Terminal” on the left side of the window that appears:

- As shown in the image above, change the “New terminals open with:” setting from “Bash” to “Zsh”, and then click “Apply”:

- Once you make this change and open a new terminal within RStudio, you might see something like this:

- We see that the fonts are not rendering as expected within the terminal. This is similar to the issue other users were seeing with terminal within vscode. Follow the steps on this post to install the missing fonts on your system.
- Once you’ve installed the fonts, restart RStudio and go to “Tools > Global Options…”. Choose “Appearance” on the left. You should see something like this:

- Under “Editor font:” choose “MesloLGS-NF-Regular” as shown below:

- Click on “Apply”. RStudio should now refresh, and the terminal should now show all the icons:
