How to use windows subsystem for linux with z shell, instead of bash, in Rstudio?

Viewed 444

I'm using wsl with zsh as my default shell. however, in windows Rstudio I only have access to PowerShell, CMD, and bash in the terminal settings. How can I add zsh to these options? I know that it is possible to use custom shells as terminal in Mac and Linux Rstudio but I'd like to have the same feature in windows rstudio.

1 Answers

You can define any preferred default shell for your WSL environment have a look here on a valid method - https://medium.com/@vinhp/set-and-use-zsh-as-default-shell-in-wsl-on-windows-10-the-right-way-4f30ed9592dc and after that, if you have WSL (properly) installed, you should be able to select Global Options Terminal Bash (WSL) as your default Terminal.

After having done some testing ie trying all sorts of workarounds on the zsh of my WSL2 I have come to the conclusion that based on this: https://support.rstudio.com/hc/en-us/articles/115010737148-Using-the-RStudio-Terminal?version=1.2.5033&mode=desktop#lifetime [x] Custom shell via path to executable ==> is NOT available for Windows IDE (written at the beginning of Appendix A) Judging by that - on WIN RStudio Desktop 1.2.5033 - imho you can only start it via issuing zsh as the first command in your WSL bash terminal.

Related