Answer the question
In order to leave comments, you need to log in
How to understand that the console is launched from PhpStorm?
My .zshrc is set to automatically start tmux if the console is not called from emacs, vim or tmux. This can be understood by the corresponding environment variables. Does PhpStorm expose any such variables? I just don't want tmux to run in the built-in terminal.
Answer the question
In order to leave comments, you need to log in
https://tompaw.net/pycharm-virtualenv-zsh-terminal/
Below is my interpretation of the link post as a reminder
mkdir $HOME/.pycharm_rc
cat < EOF > $HOME/.pycharm_rc/.zshrc
source ~/.zshrc
vdir=${PWD##*/}
# тут прописать свой путь офк
source ~/dev/venv/$vdir/bin/activate
# aka
# source ~/.virtualenvs/$vdir/bin/activate
EOF
cat < EOF > $HOME/.pycharm_rc/activate
#!/bin/sh
export ZDOTDIR=$HOME/.pycharm_rc
/bin/zsh
EOF
chmod u+x $HOME/.pycharm_rc/activate
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question