Josh Dombal
Josh Dombal

Reputation: 155

Terminal in IntelliJ is not working properly - but normal zsh terminal is working fine

I am unable to perform even basic commands in the IntelliJ terminal.screenshot of intellij terminal after launching

I've tried the command source ~/.zshrc but that doesn't help.

Upvotes: 2

Views: 2346

Answers (2)

ZCGCoder
ZCGCoder

Reputation: 528

I found this

It said to change /Applications/IntelliJ\ IDEA.app/Contents/plugins/terminal/.zshrc from its original content to:

function override_jb_variables {
  for VARIABLE in $(env)
  do
    NAME=${VARIABLE%%=*}
    if [[ $NAME = '_INTELLIJ_FORCE_SET_'* ]]
    then
      NEW_NAME=${NAME:20}
      if [ -n "$NEW_NAME" ] && [ "$NEW_NAME" != "PATH" ]
      then
        VALUE=${VARIABLE#*=}
        export "$NEW_NAME"="$VALUE"
      fi
    fi
  done
}
override_jb_variables

Upvotes: 1

Dmitrii B
Dmitrii B

Reputation: 2860

You can try to press ctrl+alt+S and choose the terminal menu settings. There you can see the option Shell Path, for me it:

tools -> Terminal

You should set the path to distribution zsh.exe

After that close your terminal and start it again.

Upvotes: 3

Related Questions