I am unable to perform even basic commands in the IntelliJ terminal.
I've tried the command source ~/.zshrc but that doesn't help.
I am unable to perform even basic commands in the IntelliJ terminal.
I've tried the command source ~/.zshrc but that doesn't help.
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:
You should set the path to distribution zsh.exe
After that close your terminal and start it again.
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