A
A
Alexander Melikhov2017-02-05 09:15:36
Command line
Alexander Melikhov, 2017-02-05 09:15:36

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

1 answer(s)
S
sim3x, 2017-02-05
@amelihovv

https://tompaw.net/pycharm-virtualenv-zsh-terminal/
Below is my interpretation of the link post as a reminder

spoiler
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

На скрине, вместо pycharm_rc нужно будет написать путь с .pycharm_rc
b9ab9cf2114b4db3a321ad2e70681ca8.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question