Shells differ in how they expand commands and load startup files. In IntelliJ IDEA on the Linux desktop, you can choose which shell starts in the integrated terminal.
Shell path is an application setting. It sets the default for new local terminal tabs in any project you open in the same IDE instance. PyCharm also keeps the setting under Tools > Terminal.
Each open tab runs its own shell process. You can try the new default in a fresh tab while work continues in an earlier session.
Steps to set the terminal shell in a JetBrains IDE:
Start with a trusted local project open in IntelliJ IDEA and an existing local tab visible in the Terminal tool window. You need the full path to the installed shell you want to use.
Trusting a project can let its code run. If Trust and Open Project appears while opening the project, choose Trust Project only if you recognize the folder and trust its source. If the source is unfamiliar, stop at the prompt. Start at step 1 once the trusted project and its terminal tab are open.
If the editor opens on the Air landing page with a Junie Accept and Install card, you can leave the offer open. Continue at step 1 once project analysis finishes and your local terminal tab is visible.
- Open Settings with
Ctrl+Alt+S.
- Click the search field at the top of the Settings sidebar.

- Enter
Terminalin the search field, replacing any existing text.
- Select Terminal under Tools in the search results.

- Click the Shell path field under Application Settings.

- Replace the Shell path value with the full path to your chosen shell, such as
/bin/zshfor Zsh or/bin/bashfor Bash.
- Press Enter while Shell path still has focus to save the setting.

- Click the + button next to the Terminal tabs to start a new local session.
The + button appears when the pointer enters Terminal if the tool window is out of focus.
- Run
psat the new tab's prompt under your usual Linux account.
If your shell has its own
pscommand, use/usr/bin/psto run the Linux command directly. - Confirm that the CMD column lists your chosen shell, such as
zshorbash.
If the new tab fails to start or lists a different shell, check that Shell path points to the installed executable before trying another new tab.