Skip to content

Can't specify git bash as terminal when running rstudio through rig #268

Open
@wzbillings

Description

@wzbillings

When I launch RStudio manually, I can set "Git Bash" as the option for the terminal. I'm talking about the option under "Global Options" -> "Terminal" in left-hand menu -> "New terminals open with" dropdown menu.

When I launch RStudio via rig rstudio, the option for Git Bash isn't present in the list of options for opening a terminal.

If I launch RStudio via rig rstudio and I set the option for the terminal to "Custom" with the path to my global git bash path, RStudio will open a terminal in another window -- I'd like to have it embedded as usual if possible.

I see from the console output when running rig rstudio that it runs cmd.exe /c start /b rstudio. Is the problem that Git Bash isn't in the path when this happens? I'm used to bash and not that familiar with cmd so I don't know if that's the same problem, or how to fix it. I tried searching through the other issues in this repo and online but didn't find anyone else with the same issue. However, if I check in Powershell ([Environment]::GetEnvironmentVariable("PATH")), the path to my git bash exe is in there, so I'm not sure why RStudio can't find Git Bash when I open it through Rig.

I'm fairly sure that the Git installation is not the problem -- I have Git/Git Bash installed in the usual Program Files location, and I can use git through any of the terminals that open in RStudio.

I'm using rig 0.7.0, R 4.4.2 (installed through rig), and RStudio 2024.12.0 Build 467 (installed manually), if any of that is relevant.

Thanks in advance!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorwindowsSpecific to Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions