Using a custom shell with Rider’s built-in terminal

In a previous post, we’ve seen that Rider comes with a built-in terminal. It lets us do things like running .NET Core commands (for example with Entity Framework core), running Git commands, etc. There’s one thing we did not cover yet: customizing the shell that is used by Rider!

While the default shell in Rider works nice, many developers prefer to use their favorite shell. For example Windows users may want to use PowerShell or Cmder instead of the default, macOS and Linux users may want to use zsh. Good news: from the settings under Tools | Terminal, we can customize which shell is used by Rider (along with some other options).
Configure which shell to use in Rider

In case you want to use an alternative shell, here are some example paths you can configure:

  • PowerShell: powershell
  • Cmder: "cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" (note the CMDER_ROOT environment variable has to be set)
  • Cygwin: "C:\cygwin\bin\bash.exe" --login -i
  • Zsh: /bin/zsh
  • Bash: /bin/bash (or bash for Windows: bash.exe)

Have another shell configured? Let us know through the comments!

Here’s Cmder in action:
Cmder as the shell in Rider

Prefer zsh? No problem:
Using zsh as Rider shell

Rider’s built-in terminal provides full access to the underlying shell. This means we can run lots of tools, like Far Manager (for managing files and archives):
Runing Far Manager in Rider

Oh and always remember this productivity tip (check here if you need the executable):

Download Rider now and give it a try! We’d love to hear your feedback.

About Maarten Balliauw

Maarten Balliauw is a Developer Advocate at JetBrains, working on .NET tools. He focuses on .NET, Azure, web technologies and application performance. Maarten is a frequent speaker at various national and international events. In his free time, he brews his own beer. Follow him on Twitter or check his personal blog.
This entry was posted in How-To's and tagged , , . Bookmark the permalink.

7 Responses to Using a custom shell with Rider’s built-in terminal

  1. Damir says:

    Thanks for a post!
    One question though. You described here how to run cmder with cmd shell. Is it possible to run cmder, but with PowerShell as a shell?

  2. Kumar Gaurav says:

    Could we also integrate fish shell?

  3. Jean Pasdeloup says:

    Is it possible to have different shells according to projects?
    When I change the shell to a custom one for a project, all other projects get the same shell.

  4. Peter says:

    Is there any way to get msys2 (im running fish on it) to work? i haven’t managed to get it to work!

Leave a Reply

Your email address will not be published. Required fields are marked *